/* Variables CSS - Diseño Profesional Inmobiliaria */
:root {
    --primary-cyan: #5f9ea0;
    --primary-dark: #4a7c7e;
    --accent-cyan: #00d4ff;
    --dark-gray: #2c3e50;
    --medium-gray: #5a6c7d;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 25px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

/* Header Elegante */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    color: var(--primary-cyan);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    padding: 1.2rem 0;
    display: inline-block;
}

.slogan {
    color: var(--medium-gray);
    font-size: 0.9rem;
    font-weight: 400;
    font-style: italic;
    display: block;
    margin-top: -5px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    padding: 1rem 0;
}

nav a {
    text-decoration: none;
    color: var(--medium-gray);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

nav a:hover {
    color: var(--primary-cyan);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-cyan);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section Elegante */
.hero {
    background: linear-gradient(135deg, #5f9ea0 0%, #4a7c7e 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h60v60H0z" fill="none"/%3E%3Cpath d="M0 30h30v30H0z" fill="%23ffffff" fill-opacity=".05"/%3E%3C/svg%3E');
    opacity: 0.3;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn {
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-cyan);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-cyan);
    transform: translateY(-2px);
}

/* Sección de Propiedades */
.properties-section {
    padding: 80px 20px;
    background: var(--light-gray);
}

.properties-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-gray);
    margin-bottom: 50px;
    font-weight: 700;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.property-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.property-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.property-card:hover img {
    transform: scale(1.05);
}

.property-info {
    padding: 25px;
}

.property-info h3 {
    font-size: 1.4rem;
    color: var(--dark-gray);
    margin-bottom: 10px;
    font-weight: 600;
}

.property-location {
    color: var(--medium-gray);
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-price {
    font-size: 1.8rem;
    color: var(--primary-cyan);
    font-weight: 700;
    margin: 15px 0;
}

/* Footer Elegante */
footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 40px 20px 20px;
    text-align: center;
}

footer a {
    color: var(--white);
    text-decoration: none;
    margin: 0 15px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 1;
    color: var(--accent-cyan);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #1fb855;
    transform: scale(1.1);
}

/* Estilos para formularios */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-cyan);
}

/* Estilos para el admin */
.admin-container {
    max-width: 500px;
    margin: 100px auto;
    padding: 40px;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 12px;
}

.admin-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-gray);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-gray);
    font-weight: 500;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* Legal pages styling */
.legal-page {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.legal-page h1 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2.5em;
    text-align: center;
}

.legal-page h2 {
    color: #5f9ea0;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8em;
    border-bottom: 2px solid #5f9ea0;
    padding-bottom: 10px;
}

.legal-page h3 {
    color: #4a7c7e;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.4em;
}

.legal-page section {
    margin-bottom: 30px;
}

.legal-page p {
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.legal-page ul, .legal-page ol {
    margin: 15px 0;
    padding-left: 30px;
}

.legal-page li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.legal-page a {
    color: #5f9ea0;
    text-decoration: none;
    border-bottom: 1px dotted #5f9ea0;
    transition: all 0.3s ease;
}

.legal-page a:hover {
    color: #4a7c7e;
    border-bottom-style: solid;
}

/* Cookies table styling */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

.cookies-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cookies-table thead {
    background: #5f9ea0;
    color: white;
}

.cookies-table thead th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.cookies-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.cookies-table tbody tr:hover {
    background: #f8f9fa;
}

.cookies-table tbody td {
    padding: 12px 15px;
}

.cookies-table tbody tr:last-child {
    border-bottom: none;
}

/* Responsive table */
@media (max-width: 768px) {
    .cookies-table {
        font-size: 0.9em;
    }
    
    .cookies-table thead {
        display: none;
    }
    
    .cookies-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
    }
    
    .cookies-table tbody td {
        display: block;
        text-align: right;
        padding: 10px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .cookies-table tbody td:before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        color: #5f9ea0;
    }
    
    .cookies-table tbody td:last-child {
        border-bottom: none;
    }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 600px;
    background: linear-gradient(135deg, #5f9ea0 0%, #4a7c7e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    z-index: 1;
    padding: 40px 20px;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   PROPIEDADES DESTACADAS SECTION
   ======================================== */
.propiedades-destacadas {
    padding: 80px 0;
    background: #f8f9fa;
}

.propiedades-destacadas h2 {
    text-align: center;
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.propiedades-destacadas .subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #666;
    margin-bottom: 50px;
}

/* ========================================
   SWIPER CUSTOMIZATION
   ======================================== */
.propiedadesSwiper {
    padding: 20px 0 60px;
}

.swiper-button-next,
.swiper-button-prev {
    color: #5f9ea0 !important;
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
}

.swiper-pagination-bullet {
    background: #5f9ea0;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #4a7c7e;
}

/* ========================================
   PROPERTY CARDS
   ======================================== */
.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.property-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #5f9ea0;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
}

.property-badge.nuevo {
    background: #e74c3c;
}

.property-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-info h3 {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.property-location {
    color: #5f9ea0;
    font-size: 1em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-location i {
    font-size: 0.9em;
}

.property-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.property-features {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.property-features span {
    color: #666;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-features i {
    color: #5f9ea0;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.property-price {
    font-size: 1.8em;
    font-weight: bold;
    color: #5f9ea0;
}

.btn-details {
    background: #5f9ea0;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-details:hover {
    background: #4a7c7e;
    transform: scale(1.05);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: white;
    color: #5f9ea0;
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: scale(1.05);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #5f9ea0;
}

.btn-large {
    padding: 18px 50px;
    font-size: 1.1em;
}

.ver-todas-container {
    text-align: center;
    margin-top: 40px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }
    
    .hero p {
        font-size: 1.2em;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .propiedades-destacadas h2 {
        font-size: 2em;
    }
    
    .property-image {
        height: 200px;
    }
    
    .property-price {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2em;
    }
    
    .btn {
        padding: 12px 30px;
    }
}
/* Estilos mejorados para página de propiedades */

/* Contenedor principal más centrado */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Título principal más elegante */
main h1 {
    text-align: center;
    font-size: 2.8em;
    color: #2c3e50;
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Buscador mejorado */
.search-container {
    max-width: 700px;
    margin: 0 auto 50px;
    position: relative;
}

.search-container input[type="text"] {
    width: 100%;
    padding: 18px 60px 18px 25px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-container input[type="text"]:focus {
    outline: none;
    border-color: #5a8f7b;
    box-shadow: 0 4px 20px rgba(90,143,123,0.15);
}

.search-container input[type="text"]::placeholder {
    color: #999;
    font-style: italic;
}

/* Grid de propiedades más espaciado */
.propiedades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 35px;
    margin-top: 40px;
}

/* Tarjetas de propiedad mejoradas */
.propiedad-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.propiedad-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.propiedad-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.propiedad-card:hover img {
    transform: scale(1.05);
}

.propiedad-card h3 {
    font-size: 1.5em;
    color: #2c3e50;
    margin: 20px 20px 10px;
    font-weight: 600;
}

.propiedad-card p {
    color: #666;
    margin: 0 20px 15px;
    line-height: 1.6;
}

.propiedad-info {
    display: flex;
    gap: 15px;
    margin: 15px 20px;
    color: #5a8f7b;
    font-size: 0.95em;
}

.precio {
    font-size: 1.8em;
    color: #5a8f7b;
    font-weight: 700;
    margin: 15px 20px;
}

.btn-detalles {
    display: inline-block;
    margin: 0 20px 25px;
    padding: 12px 30px;
    background: #5a8f7b;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-detalles:hover {
    background: #4a7a68;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(90,143,123,0.3);
}

/* Fondo suave para la sección de propiedades */
.properties-section, .propiedades-section {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
    padding: 60px 0;
}

/* Mejorar el espaciado del título */
main h1 {
    text-align: center;
    font-size: 2.8em;
    color: #2c3e50;
    margin: 0 auto 50px;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 20px;
}

main h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #5a8f7b, #7aaf9b);
    border-radius: 2px;
}

/* Asegurar que el contenedor principal esté centrado */
body {
    background-color: #f8f9fa;
}

main {
    background: white;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(0,0,0,0.05);
}

/* === CARRUSEL DE IM\u00c1GENES === */
.property-carousel {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.carousel-images {
    display: flex;
    transition: transform 0.4s ease;
    height: 100%;
}

.carousel-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* Bot\u00f3n compartir */
.share-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.95);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #5a8f7b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.share-btn:hover {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transform: scale(1.1);
}

/* Banner lateral */
.sidebar-banner {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('/images/banner-bg.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    padding: 50px 30px;
    color: white;
    text-align: center;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar-banner h3 {
    font-size: 2em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.sidebar-banner p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.95;
}

.sidebar-banner button {
    padding: 15px 40px;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.sidebar-banner button:hover {
    background: white;
    color: #2c3e50;
}

/* Layout 3 columnas */
.properties-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.properties-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

