/* ==========================================
   HOTEL ARENAL RABFER - Estilos Principales
   ========================================== */

/* Variables CSS */
:root {
    /* Colores principales */
    --primary-color: #1a5f4a;
    --primary-dark: #0d4a38;
    --primary-light: #2d8b6a;
    --secondary-color: #c9a962;
    --secondary-light: #e0c989;
    
    /* Colores neutros */
    --white: #ffffff;
    --black: #000000;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Tipografía */
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    /* Espaciado */
    --section-padding: 100px;
    --container-padding: 20px;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Reset y estilos base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--gray-900);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--gray-900);
}

.btn-secondary:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
}

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

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

/* ==========================================
   TOP BAR
   ========================================== */
.top-bar {
    background: var(--primary-dark);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 25px;
}

.top-bar-left a,
.top-bar-right a {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

.top-bar-left a:hover,
.top-bar-right a:hover {
    opacity: 1;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 10px;
}

.lang-btn {
    color: var(--white) !important;
    font-size: 12px;
    font-weight: 500;
    opacity: 0.7 !important;
    transition: var(--transition-fast);
    background: none !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
}

.lang-btn:hover,
.lang-btn.active {
    opacity: 1 !important;
    color: var(--secondary-color) !important;
}

.lang-divider {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
}

.top-bar-right a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bar-right a:hover {
    background: var(--secondary-color);
    color: var(--gray-900);
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    transition: var(--transition-normal);
}

.navbar.scrolled .logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-btn {
    padding: 12px 25px;
    font-size: 14px;
}

/* Toggle button (mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--gray-800);
    transition: var(--transition-normal);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.5) 50%,
        rgba(0,0,0,0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 20px;
}

.hero-subtitle {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero-description {
    font-size: 18px;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
    line-height: 1.8;
}

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

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    color: var(--white);
    animation: bounce 2s infinite;
}

.hero-scroll span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0.7;
}

.hero-scroll i {
    font-size: 24px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ==========================================
   BOOKING BAR
   ========================================== */
.booking-section {
    position: relative;
    z-index: 100;
    margin-top: -60px;
    margin-bottom: -60px;
}

.booking-bar {
    background: var(--white);
    padding: 30px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.section-with-booking {
    padding-top: 140px;
}

.best-rate-ribbon {
    background: linear-gradient(135deg, var(--secondary-color), #d4b36a);
    color: var(--gray-900);
    text-align: center;
    padding: 12px 25px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: var(--shadow-md);
}

.best-rate-ribbon i {
    color: var(--primary-dark);
    font-size: 16px;
}

.best-rate-ribbon + .booking-bar {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.booking-form {
    display: grid;
    grid-template-columns: repeat(5, 1fr) auto;
    gap: 20px;
    align-items: end;
}

.booking-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.booking-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.booking-field input,
.booking-field select {
    padding: 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 15px;
    color: var(--gray-800);
    transition: var(--transition-normal);
}

.booking-field input:focus,
.booking-field select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 95, 74, 0.1);
}

.booking-bar .btn {
    padding: 15px 40px;
    height: fit-content;
}

/* ==========================================
   SECTION STYLES
   ========================================== */
.section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-subtitle {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 20px;
    color: var(--gray-900);
}

.section-description {
    font-size: 17px;
    color: var(--gray-600);
    line-height: 1.8;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about {
    background: var(--gray-100);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 250px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 5px solid var(--white);
}

.about-img-secondary img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.about-content {
    padding-right: 40px;
}

.about-content .section-subtitle {
    text-align: left;
}

.about-content .section-title {
    text-align: left;
}

.about-text {
    color: var(--gray-600);
    margin-bottom: 30px;
    line-height: 1.9;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-feature i {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.about-feature span {
    font-weight: 500;
    color: var(--gray-800);
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 1px solid var(--gray-200);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon i {
    font-size: 36px;
    color: var(--white);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--gray-900);
}

.service-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

.service-card .service-detail {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
}

/* ==========================================
   ROOMS SECTION
   ========================================== */
.rooms {
    background: var(--gray-100);
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.room-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.room-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.room-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary-color);
    color: var(--gray-900);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.room-content {
    padding: 30px;
}

.room-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.room-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.room-amenities span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-600);
}

.room-amenities i {
    color: var(--primary-color);
}

.room-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
}

.room-price {
    font-size: 14px;
    color: var(--gray-600);
}

.room-price strong {
    font-size: 24px;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.room-footer .btn {
    padding: 10px 20px;
    font-size: 13px;
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta {
    background: linear-gradient(rgba(26, 95, 74, 0.9), rgba(26, 95, 74, 0.9)),
                url('../img/Exterior/hotel.jpg') center/cover no-repeat fixed;
    padding: 120px 0;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    color: var(--white);
}

.cta .section-subtitle {
    color: var(--secondary-color);
}

.cta .section-title {
    color: var(--white);
}

.cta .section-description {
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 70px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-desc {
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-normal);
}

.footer-social a:hover {
    background: var(--primary-color);
}

.footer-col h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 25px;
    font-family: var(--font-primary);
    font-weight: 600;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-contact i {
    color: var(--secondary-color);
    margin-top: 4px;
}

.footer-contact a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.developer a {
    color: var(--secondary-color);
}

/* ==========================================
   WHATSAPP BUTTON
   ========================================== */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition-normal);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background: #128c7e;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .about-grid {
        gap: 50px;
    }
    
    .rooms-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .booking-form {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 70px;
    }
    
    .top-bar-left {
        display: none;
    }
    
    .top-bar-content {
        justify-content: center;
    }
    
    /* Language switcher visible on mobile */
    .lang-switcher {
        margin-right: 15px;
    }
    
    .lang-btn {
        font-size: 13px;
        font-weight: 600;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 25px;
        box-shadow: var(--shadow-xl);
        transition: var(--transition-normal);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu .nav-link {
        font-size: 18px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-images {
        order: -1;
    }
    
    .about-img-secondary {
        right: 20px;
        bottom: -20px;
    }
    
    .about-content {
        padding-right: 0;
    }
    
    .rooms-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .booking-bar {
        margin-top: 0;
        border-radius: 0;
        padding: 30px 20px;
    }
    
    .booking-form {
        grid-template-columns: 1fr;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   SOCIAL PROOF POPUP
   ========================================== */
.social-proof-popup {
    position: fixed;
    bottom: 100px;
    left: 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 20px;
    max-width: 320px;
    z-index: 9998;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    transform: translateX(-120%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid var(--secondary-color);
}

.social-proof-popup.show {
    transform: translateX(0);
    opacity: 1;
}

.social-proof-popup.hide {
    transform: translateX(-120%);
    opacity: 0;
}

.popup-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--gray-400);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.popup-close:hover {
    color: var(--gray-700);
}

.popup-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.popup-content {
    flex: 1;
}

.popup-viewers {
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 8px;
    line-height: 1.4;
}

.popup-viewers strong {
    color: var(--primary-color);
}

.popup-cta {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.social-proof-popup .btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* Live indicator dot */
.popup-viewers strong::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 6px;
    animation: live-pulse 1.5s infinite;
}

@keyframes live-pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
}

/* Mobile responsive for popup */
@media (max-width: 480px) {
    .social-proof-popup {
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
        bottom: 90px;
    }
}
