/* ============================================
   HOSTEMP - ESTILOS GLOBALES
   ============================================ */

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    color: #2c3e50;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   HEADER - ESTILOS GLOBALES (se maneja desde header.php)
   ============================================ */
/* NOTA: Los estilos del header (position, background, padding, etc.)
   se definen dinámicamente en /templates/header.php */
.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    gap: 25px;
    flex-wrap: wrap;
}

/* Logo */
.header-logo {
    flex: 0 0 auto;
}

.header-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.header-logo .logo-image {
    max-height: 50px;
    width: auto;
}

/* Navegación */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #3498db;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-item.active a {
    color: #3498db;
}

/* Redes Sociales */
.header-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #3498db;
}

.social-link svg {
    width: 100%;
    height: 100%;
}

/* Botón Reservar */
.header-cta {
    flex: 0 0 auto;
}

.btn-reserve-header {
    background: #8b09ae;
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-reserve-header:hover {
    background: #6a0785;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 9, 174, 0.3);
}

/* Menú Móvil */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-close {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 1002;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #2c3e50;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 22px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 30px;
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.btn-primary {
    background: #E74C3C;
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #C0392B;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid #ffffff;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #2c3e50;
    transform: translateY(-2px);
}

/* Hero Video */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

.hero-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Hero Image */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.5);
}

/* ============================================
   SECCIONES DEL HOME
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 10px;
}

.section-header .section-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* Fondo gris */
.bg-gris {
    background: #f1f2f6;
}

.bg-blanco {
    background: #ffffff;
}

/* ============================================
   PROPIEDADES GRID - RESPONSIVE SIMÉTRICO
   ============================================ */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* ============================================
   EXPERIENCIAS GRID - RESPONSIVE SIMÉTRICO
   ============================================ */
.experiences-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* ============================================
   PLANES GRID - RESPONSIVE SIMÉTRICO
   ============================================ */
.planes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* ============================================
   TESTIMONIOS GRID - RESPONSIVE SIMÉTRICO
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* ============================================
   DESTINOS GRID - RESPONSIVE SIMÉTRICO
   ============================================ */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* ============================================
   TARJETAS (CARDS) - ESTILOS UNIFICADOS
   ============================================ */
.property-card,
.experience-card,
.plan-card,
.testimonial-card,
.destination-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.property-card:hover,
.experience-card:hover,
.plan-card:hover,
.testimonial-card:hover,
.destination-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.property-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #ecf0f1;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-price-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.8);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
}

.property-info {
    padding: 18px 20px 20px;
}

.property-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.property-info .property-location {
    color: #7f8c8d;
    font-size: 0.85rem;
    margin: 0 0 10px 0;
}

.btn-detail {
    display: inline-block;
    background: #3498db;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.btn-detail:hover {
    background: #2980b9;
    color: #ffffff;
}

/* ============================================
   SOBRE NOSOTROS - RESPONSIVE
   ============================================ */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-wrapper .about-image img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.about-wrapper .about-text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 10px;
}

.about-wrapper .about-text .about-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 15px;
}

.about-wrapper .about-text p {
    color: #555;
    line-height: 1.8;
}

/* ============================================
   ESTADÍSTICAS
   ============================================ */
.stats-section .stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
}

.stats-section .stat-item .stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #2c3e50;
    color: #ffffff;
    padding: 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.footer-col h3,
.footer-col h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-col p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-col .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col .footer-menu li {
    margin-bottom: 8px;
}

.footer-col .footer-menu a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-col .footer-menu a:hover {
    color: #ffffff;
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE - TABLET (768px - 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .properties-grid,
    .experiences-grid,
    .planes-grid,
    .testimonials-grid,
    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .about-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}

/* ============================================
   RESPONSIVE - MÓVIL (< 768px)
   ============================================ */
@media (max-width: 768px) {
    /* Header */
    .header-wrapper {
        gap: 10px;
        padding: 10px 15px;
    }

    .header-nav {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: #2c3e50;
        padding: 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.3);
        z-index: 1000;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        overflow-y: auto;
    }

    .header-nav.active {
        right: 0;
    }

    .header-nav .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 20px;
        gap: 15px;
        width: 100%;
    }

    .header-nav .nav-menu a {
        font-size: 18px;
        display: block;
        padding: 8px 0;
    }

    .menu-toggle {
        display: block;
    }

    .menu-close {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
        color: #ffffff;
        font-size: 28px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1002;
    }

    .header-cta {
        display: none !important;
    }

    .nav-item-mobile-cta {
        display: block !important;
        margin-top: 20px;
        width: 100%;
    }

    /*.header-social {
        margin-top: 0px;
        justify-content: center;
    }*/

    /* Grids - 1 columna */
    .properties-grid,
    .experiences-grid,
    .planes-grid,
    .testimonials-grid,
    .destinations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* About - 1 columna, imagen arriba */
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .about-wrapper .about-image {
        order: -1;
    }
    
    .about-wrapper .about-image img {
        max-height: 250px;
        object-fit: cover;
    }
    
    .about-wrapper .about-text h2 {
        font-size: 1.5rem;
    }
    
    .about-wrapper .about-text .about-subtitle {
        font-size: 1rem;
    }

    /* Hero */
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-header .section-subtitle {
        font-size: 0.95rem;
    }
    
    /* Estadísticas */
    .stats-section .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stats-section .stat-item .stat-number {
        font-size: 2rem;
    }
}

/* ============================================
   RESPONSIVE - MÓVIL PEQUEÑO (< 480px)
   ============================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .property-card .property-image {
        height: 180px;
    }
    
    .property-info {
        padding: 14px 16px 16px;
    }
    
    .property-info h3 {
        font-size: 0.95rem;
    }
    
    .section-header {
        margin-bottom: 25px;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .stats-section .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .stats-section .stat-item .stat-number {
        font-size: 1.6rem;
    }
    
    .stats-section .stat-item .stat-label {
        font-size: 0.8rem;
    }
}

/* ============================================
   UTILIDADES
   ============================================ */
@media (min-width: 769px) {
    .nav-item-mobile-cta {
        display: none !important;
    }
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-40 {
    margin-bottom: 40px;
}