/* === OPTIMIZED CSS - Centro Hípico Fín del Mundo === */

/* === FOUC PREVENTION === */
html {
    visibility: hidden;
}

html.loaded {
    visibility: visible;
}

/* Prevenir layout shifts durante la carga */
.site-header {
    opacity: 0;
    animation: fadeInHeader 0.3s ease-in-out 0.1s forwards;
}

@keyframes fadeInHeader {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === EXTERNAL RESOURCES === */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Dancing+Script:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* === GLOBAL RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 74px; /* Altura fija del header para evitar layout shift */
    /* Mejoramos la estabilidad inicial */
    min-height: 100vh;
    background-color: #fff;
}

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

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Great Vibes', 'Dancing Script', serif;
    font-size: 3rem;
    font-weight: 100;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 30px;
    color: #c4914c;
}

.section-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #666;
}

.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #c4914c, transparent);
    margin: 40px auto;
    max-width: 200px;
}

.section-cta {
    text-align: center;
    margin-top: 30px;
}

.section-image {
    text-align: center;
    margin: 40px 0;
}

.center-image {
    max-width: 70%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #c4914c 0%, #b8864a 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(196, 145, 76, 0.3);
}

.btn:hover {
    background: linear-gradient(135deg, #d4a05c 0%, #c8965a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 145, 76, 0.4);
    color: white;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #c4914c 0%, #b8864a 100%);
}

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

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

/* === HEADER === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    /* Eliminamos transition para evitar saltos en la carga inicial */
}

.navbar {
    padding: 12px 0;
    /* Unificamos con critical.css */
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
    /* Unificamos altura con critical.css */
}

.logo:hover {
    transform: scale(1.1);
}

.social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #c4914c;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-icons a:hover {
    background: #a67c3a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 145, 76, 0.3);
}

.facebook {
    background: #1877f2 !important;
}

.instagram {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d) !important;
}

.tripadvisor {
    background: #00af87 !important;
    padding: 4px;
}

.tripadvisor-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    align-items: center;
    /* Asegurar posicionamiento estable */
    min-height: 40px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 10px;
    transition: color 0.3s ease, background-color 0.3s ease;
    /* Optimizar transiciones para evitar layout shifts */
    display: block;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: #c4914c;
    background: rgba(196, 145, 76, 0.1);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    gap: 4px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* === LANGUAGE SELECTOR === */
.language-selector {
    position: relative;
    margin-left: 15px;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(196, 145, 76, 0.1);
    border: 2px solid rgba(196, 145, 76, 0.2);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    justify-content: center;
}

.language-toggle:hover {
    background: rgba(196, 145, 76, 0.2);
    border-color: #c4914c;
}

.current-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.current-lang {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.language-toggle i {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.language-selector.open .language-toggle i {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 2px solid rgba(196, 145, 76, 0.2);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 140px;
}

.language-selector.open .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: rgba(196, 145, 76, 0.1);
    color: #c4914c;
}

.language-option.active {
    background: rgba(196, 145, 76, 0.15);
    color: #c4914c;
}

.language-option img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

/* === HERO SLIDER === */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background-color: #000;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 1.2s ease-in-out;
    transform: scale(1.1);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.slide-bgimg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    border: none;
    z-index: 0;
    display: block;
}

.slide[data-slide="1"] .slide-bgimg {
    background-image: url('../images/slide1.jpg');
}

.slide[data-slide="2"] .slide-bgimg {
    background-image: url('../images/slide2.jpg');
}

.slide[data-slide="3"] .slide-bgimg {
    background-image: url('../images/slide3.jpg');
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    transform: translateY(50px);
    transition: transform 1s ease-out 0.3s, opacity 1s ease-out 0.3s;
    opacity: 0;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-title {
    font-family: 'Great Vibes', 'Dancing Script', serif;
    font-size: 4rem;
    font-weight: 100;
    letter-spacing: 3.3px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    color: #ffffff;
}

.slide-text {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.slide-btn {
    font-size: 1.1rem;
    padding: 15px 30px;
    text-shadow: none;
    box-shadow: 0 4px 15px rgba(196, 145, 76, 0.3);
    transition: all 0.3s ease;
    margin-top: 40px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    backdrop-filter: blur(10px);
}

.slider-arrow:hover {
    background: rgba(196, 145, 76, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow-prev {
    left: 30px;
}

.slider-arrow-next {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.slider-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #c4914c;
    transform: scale(1.2);
}

/* === SECTIONS === */
.centro-hipico-section {
    background: #f8f9fa;
}

.cabalgatas-section {
    color: white;
    background-image: url('../images/cabalgatas-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    position: relative;
    padding: 80px 0;
}

.cabalgatas-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.cabalgatas-section > * {
    position: relative;
    z-index: 2;
}

.cabalgatas-section .section-title {
    color: white;
}

/* === FLIP CARDS === */
.flip-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.flip-card {
    background-color: transparent;
    width: 100%;
    height: 390px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    top: 0;
    left: 0;
}

.flip-card-front {
    background-image: url('../images/flipcard1-front.jpg');
    background-size: cover;
    background-position: center center;
    color: white;
    transform: rotateY(0deg);
    z-index: 2;
}

.flip-card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
}

.flip-card-front > * {
    position: relative;
    z-index: 2;
}

.flip-card:nth-child(2) .flip-card-front {
    background-image: url('../images/flipcard2-front.jpg');
}

.flip-card:nth-child(3) .flip-card-front {
    background-image: url('../images/flipcard3-front.jpg');
}

.flip-card-back {
    background-image: url('../images/flipcard1-back.jpg');
    background-size: cover;
    background-position: center center;
    color: white;
    transform: rotateY(180deg);
    z-index: 1;
}

.flip-card-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
}

.flip-card-back > * {
    position: relative;
    z-index: 2;
}

.flip-card:nth-child(2) .flip-card-back {
    background-image: url('../images/flipcard2-back.jpg');
}

.flip-card:nth-child(3) .flip-card-back {
    background-image: url('../images/flipcard3-back.jpg');
}

.flip-card-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.flip-card-subtitle {
    font-family: 'Great Vibes', 'Dancing Script', serif;
    font-size: 1.5rem;
    opacity: 0.9;
    font-weight: 400;
    letter-spacing: 1px;
}

.flip-card-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: left;
}

/* === PENÍNSULA MITRE === */
.peninsula-mitre-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #333;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.peninsula-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.peninsula-text {
    position: relative;
    text-align: center;
    z-index: 2;
    padding-right: 30px;
}

.peninsula-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.9;
    color: #333;
}

.peninsula-video {
    position: relative;
    width: 125%;
    max-width: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin-top: 30px;
    aspect-ratio: 16/9;
}

.expedition-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.expedition-video:hover {
    transform: scale(1.02);
}

.video-unmute-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
    background: transparent;
    transition: opacity 0.3s ease;
}

.video-unmute-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* === OPINIONES === */
.opiniones-section {
    background-image: url('../images/testimonials-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    position: relative;
    padding: 50px 0;
}

.opiniones-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 249, 250, 0.85);
    z-index: 1;
}

.opiniones-section > * {
    position: relative;
    z-index: 2;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.review-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c4914c, #d4a052);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.review-stars {
    margin-bottom: 15px;
}

.star {
    color: #ffc107;
    font-size: 1.2rem;
    margin-right: 2px;
}

.review-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.review-date {
    font-size: 0.85rem;
    color: #888;
}

.google-reviews-widget {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.google-reviews-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.google-logo {
    height: 30px;
    width: auto;
}

.google-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.rating-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
}

.rating-stars .star {
    font-size: 1.5rem;
}

.rating-count {
    font-size: 0.9rem;
    color: #666;
}

.rate-experience-container {
    text-align: center;
    margin-top: 30px;
}

.rate-experience-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc05 100%);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.rate-experience-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
    text-decoration: none;
    color: white;
}

.rate-experience-btn i {
    font-size: 18px;
}

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

/* === GALERÍA === */
.galeria-section {
    background-image: url('../images/gallery-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    color: white;
    position: relative;
    padding: 100px 0 120px 0;
}

.galeria-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.galeria-section > * {
    position: relative;
    z-index: 2;
}

.galeria-section .section-title {
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 40px;
    max-height: none;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #f0f0f0;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(196, 145, 76, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
    opacity: 1;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-content img {
    width: 100%;
    height: auto;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* === CONTACTO === */
.contacto-section {
    background-image: url('../images/contact-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    position: relative;
    padding: 80px 0;
    color: white;
}

.contacto-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.45);
    z-index: 1;
}

.contacto-section > * {
    position: relative;
    z-index: 2;
}

.contacto-section .section-title {
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #f8f9fa;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c4914c;
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group select option {
    background: #34495e;
    color: white;
}

.recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* === FORM MESSAGES === */
.form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.3s ease-out;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid #4CAF50;
    color: #4CAF50;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 2px solid #f44336;
    color: #f44336;
}

.form-message.warning {
    background: rgba(255, 193, 7, 0.2);
    border: 2px solid #FFC107;
    color: #FFC107;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #c4914c;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.2rem;
    color: #c4914c;
    margin-top: 5px;
    width: 20px;
}

.contact-item strong {
    display: block;
    margin-bottom: 5px;
    color: #f8f9fa;
}

.contact-item p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
}

.social-links {
    margin-top: 40px;
}

.social-links h4 {
    margin-bottom: 20px;
    color: #c4914c;
}

.social-link {
    display: inline-block;
    width: 45px;
    height: 45px;
    background: rgba(196, 145, 76, 0.2);
    color: #c4914c;
    text-align: center;
    line-height: 45px;
    border-radius: 50%;
    margin-right: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: #c4914c;
    color: white;
    transform: translateY(-3px);
}

/* === FOOTER === */
.site-footer {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #c4914c;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #c4914c;
}

.footer-section i {
    margin-right: 10px;
    color: #c4914c;
    width: 20px;
}

.footer-section a[href^="tel:"] {
    color: white;
}

.footer-section a[href^="tel:"]:hover {
    color: #c4914c;
}

.footer-social-section {
    text-align: center;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    align-items: center;
}

.footer-social-icons a {
    color: #fafafa !important;
    font-size: 2rem;
    transition: transform 0.3s ease;
    background: transparent;
    text-decoration: none;
}

.footer-social-icons a:hover {
    transform: scale(1.2);
}

.tripadvisor-footer-logo {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.tripadvisor-footer-logo:hover {
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* === FLOATING ELEMENTS === */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: rgba(196, 145, 76, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top:hover {
    background: #c4914c;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* === QUIENES SOMOS SECTIONS === */
.banner-section {
    width: 100%;
    height: 550px;
    background-image: url('../images/quienes-somos-banner.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    border-top: 7px solid #fafafa;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.cuadrantes-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.cuadrantes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.cuadrante {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-cuadrante {
    background: rgba(255, 255, 255, 0);
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.cuadrante-title {
    font-family: 'Great Vibes', 'Dancing Script', serif;
    font-size: 46px;
    font-weight: 100;
    letter-spacing: 3.3px;
    color: #c4914c;
    margin-bottom: 20px;
}

.cuadrante-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: white;
    opacity: 0.9;
}

.image-cuadrante {
    padding: 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cuadrante-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.cuadrante-image:hover {
    transform: scale(1.05);
}

.cierre-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.cierre-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cierre-text {
    font-size: 2.3rem;
    font-family: 'Great Vibes', 'Dancing Script', serif;
    line-height: 1.8;
    color: #333;
    opacity: 0.9;
    margin-bottom: 30px;
}

.logo-section {
    text-align: center;
    margin: 40px 0 20px 0;
}

.transparent-logo {
    max-width: 200px;
    height: auto;
    opacity: 0.8;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    .peninsula-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        /* Optimizar transiciones específicas */
        min-height: auto;
        gap: 15px;
    }

    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar-toggle {
        display: flex;
    }

    .hero-slider {
        height: 500px;
    }
    
    .slide-title {
        font-size: 3rem;
    }
    
    .slide-text {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .slider-arrow-prev {
        left: 15px;
    }
    
    .slider-arrow-next {
        right: 15px;
    }

    .flip-cards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .flip-card {
        height: 250px;
    }

    .reviews-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
        padding: 15px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float a {
        width: 55px;
        height: 55px;
    }

    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }

    .banner-section {
        height: 250px;
    }

    .cuadrantes-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .text-right,
    .text-left {
        text-align: center;
    }
    
    .cuadrante-title {
        font-size: 1.5rem;
    }

    .transparent-logo {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 0;
    }

    .hero-slider {
        height: 400px;
    }
    
    .slide-title {
        font-size: 2.5rem;
    }
    
    .slide-text {
        font-size: 1rem;
    }

    .flip-card {
        height: 220px;
    }

    .flip-card-front,
    .flip-card-back {
        padding: 20px;
    }

    .flip-card-title {
        font-size: 1.5rem;
    }

    .review-card {
        padding: 25px 20px;
    }

    .contact-form {
        padding: 25px 15px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

/* === CONTACT LINKS === */
a[href^="tel:"] {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a[href^="tel:"]:hover {
    color: #c4914c;
    text-decoration: underline;
}

/* === UTILITY CLASSES === */
.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* === MISC === */
figure {
    margin: 0;
    padding: 0;
    border: none;
    display: block;
}