@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #D9633E; /* Naranja-rojizo, reminiscente del sol y la tierra de Yucatán */
    --secondary-color: #F3B431; /* Dorado maya */
    --accent-color: #00B1A9; /* Turquesa de cenote */
    --maya-blue: #70D1E4; /* Azul maya */
    --maya-green: #3E8C5F; /* Verde de la selva yucateca */
    --light-color: #F7F2E4; /* Beige claro, similar a la piedra caliza */
    --dark-color: #4A3B33; /* Marrón oscuro, como la madera tradicional */
    --font-main: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--light-color);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D9633E' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Language Selector - MODIFICADO PARA ARREGLAR EMPALME */
.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 101;
}

.language-current {
    display: flex;
    align-items: center;
    color: white;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.language-current:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.language-current img {
    width: 20px;
    height: 15px;
    margin-right: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.language-current .fa-chevron-down {
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    display: none;
    overflow: hidden;
    min-width: 150px;
}

.language-selector.active .language-dropdown {
    display: block;
    animation: fadeIn 0.2s;
}

.language-selector.active .language-current .fa-chevron-down {
    transform: rotate(180deg);
}

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

.language-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
    color: var(--dark-color);
    text-decoration: none;
}

.language-option:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.language-option.active {
    background-color: var(--light-color);
    font-weight: 500;
}

.language-option img {
    width: 20px;
    height: 15px;
    margin-right: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
    .language-selector {
        top: 15px;
        right: 75px; /* Más espacio en pantallas medianas */
    }
}

/* Header Styles */
header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/api/placeholder/1200/600");
    background-size: cover;
    background-position: center;
    color: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
    border-bottom: 8px solid var(--secondary-color);
}

nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.3);
}

/* Modificación para mover el menú más a la izquierda */
.nav-container {
    display: flex;
    justify-content: flex-start; /* Cambiado de space-between a flex-start */
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    margin-left: 120px; /* Añadido margen izquierdo para separarlo del logo */
}

.nav-links li {
    margin-left: 20px; /* Reducido para dar más espacio al selector de idiomas */
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title span {
    color: var(--secondary-color);
}

.hero-slogan {
    font-size: 1.5rem;
    margin-bottom: 40px;
    line-height: 1.4;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(233, 77, 26, 0.4);
}

.cta-button:hover {
    background-color: #d23c0a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(233, 77, 26, 0.6);
}

/* Visitor Counter */
.visitor-counter {
    background-color: var(--dark-color);
    color: white;
    padding: 8px 0;
    border-bottom: 2px solid var(--secondary-color);
}

.counter-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 0.9rem;
}

.counter-wrapper i {
    color: var(--secondary-color);
    margin-right: 5px;
}

#visitorCount {
    font-weight: bold;
    margin: 0 5px;
}

/* Carousel Section */
.carousel-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--dark-color);
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    margin: 15px auto;
    position: relative;
}

.section-title:before {
    content: '';
    display: block;
    width: 30px;
    height: 30px;
    margin: 0 auto 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23D9633E' d='M12,2L1,21H23L12,2M12,6L19.5,19H4.5L12,6Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: contain; /* Cambiado de 'cover' a 'contain' */
    background-color: rgba(0, 0, 0, 0.8); /* Fondo oscuro para resaltar imágenes verticales */
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    text-align: center;
}

.carousel-caption h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.carousel-caption p {
    font-size: 16px;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.carousel-control {
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--dark-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
    border: none;
    margin: 0 15px;
}

.carousel-control:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.carousel-item a {
    display: block;
    width: 100%;
    height: 100%;
    color: white;
    text-decoration: none;
    position: relative;
}

.carousel-item a:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s;
}

.carousel-item a:hover:after {
    opacity: 1;
}

/* Reasons Section */
.reasons-section {
    padding: 80px 0;
    background-color: white;
}

.reasons-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .reasons-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .reasons-container {
        grid-template-columns: 1fr;
    }
}

.reason-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 3px solid var(--accent-color);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.reason-card:nth-child(2) {
    border-top-color: var(--primary-color);
}

.reason-card:nth-child(3) {
    border-top-color: var(--secondary-color);
}

.reason-card:nth-child(4) {
    border-top-color: var(--maya-green);
}

.reason-card:nth-child(5) {
    border-top-color: var(--maya-blue);
}

.reason-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.reason-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.reason-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s;
}

/* Texto sobrepuesto en la imagen */
.reason-img-title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    z-index: 1;
}

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

.reason-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.reason-number {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-weight: bold;
    font-size: 1.4rem;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 177, 169, 0.3);
    position: relative;
}

.reason-card:nth-child(1) .reason-number {
    background-color: var(--accent-color);
}

.reason-card:nth-child(2) .reason-number {
    background-color: var(--primary-color);
}

.reason-card:nth-child(3) .reason-number {
    background-color: var(--secondary-color);
}

.reason-card:nth-child(4) .reason-number {
    background-color: var(--maya-green);
}

.reason-card:nth-child(5) .reason-number {
    background-color: var(--maya-blue);
}

.reason-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.reason-text {
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
}

.maya-pattern {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 60px;
    height: 60px;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0L15 15H0v15l15 15v15h15l15-15h15V30L45 15V0H30zm0 10a20 20 0 110 40 20 20 0 010-40z' fill='%23D9633E'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--maya-blue);
    color: white;
    background-image: linear-gradient(135deg, var(--maya-blue) 0%, var(--accent-color) 100%);
    position: relative;
}

.contact-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 0 L50 10 L100 0 L100 10 L0 10 Z' fill='%23F3B431'/%3E%3C/svg%3E");
    background-size: 100px 10px;
    background-repeat: repeat-x;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: white;
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
}

.contact-text h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--accent-color);
    outline: none;
}

.submit-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.submit-button:hover {
    background-color: #d23c0a;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

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

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--secondary-color);
}

.footer-description {
    margin-bottom: 20px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: all 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h3, .footer-contact h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3:after, .footer-contact h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

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

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

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #bbb;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: pulse 2s infinite;
    text-decoration: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(37, 211, 102, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }
}

/* Promotional Popup */
.promo-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.promo-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.promo-popup {
    width: 90%;
    max-width: 500px;
    background-color: var(--light-color);
    border-radius: 15px;
    padding: 0;
    position: relative;
    overflow: hidden;
    animation: popup-appear 0.5s forwards;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--secondary-color);
}

@keyframes popup-appear {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.popup-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.popup-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.popup-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='rgba(255,255,255,0.1)' d='M0,50 L50,0 L100,50 L50,100 Z'/%3E%3C/svg%3E");
    background-size: 30px;
    opacity: 0.3;
    z-index: 1;
}

.popup-content {
    padding: 30px;
    text-align: center;
}

.popup-message {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--dark-color);
}

.highlight {
    color: var(--primary-color);
    font-weight: 700;
}

.popup-cta {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    margin-bottom: 15px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0, 177, 169, 0.3);
}

.popup-cta:hover {
    background-color: var(--maya-green);
    transform: translateY(-3px);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: white;
    color: var(--dark-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    border: none;
    transition: all 0.2s;
}

.popup-close:hover {
    background-color: var(--dark-color);
    color: white;
}

.popup-footer {
    padding: 0 30px 20px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.popup-dismiss {
    background: none;
    border: none;
    color: #999;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    margin: 0;
}

.popup-dismiss:hover {
    color: var(--dark-color);
}

.maya-decoration {
    position: absolute;
    width: 80px;
    height: 80px;
    opacity: 0.1;
    z-index: 1;
}

.maya-decoration.top-left {
    top: -20px;
    left: -20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23D9633E' d='M50,0 L0,50 L50,100 L100,50 L50,0 Z M50,25 A25,25 0 1,1 50,75 A25,25 0 1,1 50,25 Z'/%3E%3C/svg%3E");
    background-size: contain;
    transform: rotate(-45deg);
}

.maya-decoration.bottom-right {
    bottom: -20px;
    right: -20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23D9633E' d='M50,0 L0,50 L50,100 L100,50 L50,0 Z M50,35 A15,15 0 1,1 50,65 A15,15 0 1,1 50,35 Z'/%3E%3C/svg%3E");
    background-size: contain;
    transform: rotate(45deg);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-slogan {
        font-size: 1.2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .carousel-item img {
        height: 300px;
    }
}

/* Añadir al final de styles.css */
.maya-music-player {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 1000;
}

.music-toggle-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
}

.music-toggle-btn:hover {
    transform: scale(1.1);
}

.music-toggle-btn.playing {
    background-color: var(--primary-color);
    animation: pulse 2s infinite;
}

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