/* Variables */
:root {
    --primary: #004b50;
    /* Deep tropical teal */
    --primary-light: #00767e;
    --accent: #d4af37;
    /* Elegant gold */
    --accent-hover: #b8962a;
    --dark: #1e293b;
    --light: #f8fafc;
    --white: #ffffff;
    --gray: #64748b;
    --bg-light: #f1f5f9;

    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-display: 'Cinzel', serif;
    /* Nueva fuente elegante para header */

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-serif);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tipografía de Utilidad */
.subtitle {
    display: block;
    color: var(--accent);
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.text-light {
    color: #ffd700;
}

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

.w-100 {
    width: 100%;
}

/* Botones */
.btn-primary {
    display: inline-block;
    background-color: var(--accent);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Notificacion personalizada */
.custom-notice {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: min(360px, calc(100% - 32px));
    z-index: 2500;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 14px 44px 14px 14px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.88));
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
    backdrop-filter: blur(8px);
    color: var(--dark);
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.25s ease, transform 0.25s ease;
    animation: noticeIn 0.28s ease;
    overflow: hidden;
}

.custom-notice::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    animation: noticeLife 5s linear forwards;
}

.custom-notice.success {
    border-color: rgba(15, 118, 110, 0.35);
}

.custom-notice.warning {
    border-color: rgba(180, 83, 9, 0.35);
}

.custom-notice.hide {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
}

.notice-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--primary);
    background: rgba(0, 75, 80, 0.1);
}

.custom-notice.success .notice-icon {
    color: #0f766e;
    background: rgba(15, 118, 110, 0.12);
}

.custom-notice.warning .notice-icon {
    color: #b45309;
    background: rgba(180, 83, 9, 0.14);
}

.notice-content {
    display: flex;
    flex-direction: column;
}

.notice-title {
    font-family: var(--font-display);
    letter-spacing: 0.3px;
    font-size: 1rem;
    margin-bottom: 0.1rem;
    color: var(--primary);
}

.notice-message {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.4;
}

.notice-close {
    position: absolute;
    top: 7px;
    right: 9px;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: none;
    background: rgba(148, 163, 184, 0.13);
    color: var(--gray);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.notice-close:hover {
    background: rgba(148, 163, 184, 0.22);
    color: var(--primary);
}

@keyframes noticeIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes noticeLife {
    from {
        width: 100%;
    }

    to {
        width: 0;
    }
}

/* Estilos específicos para Swiper Slider */
.swiper {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 50px;
    /* Espacio para la paginación */
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px;
    /* Ancho default base */
    height: 400px;
}

@media (min-width: 768px) {
    .swiper-slide {
        width: 400px;
    }
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--accent) !important;
}

.swiper-pagination-bullet-active {
    background-color: var(--accent) !important;
}

/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    /* Fondo blanco constante */
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--dark);
    /* Siempre oscuro */
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    /* Evita que el texto salte a 2 líneas */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--dark);
    /* Siempre oscuro */
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition);
}

.nav-links a:not(.btn-nav):hover {
    color: var(--accent);
}

.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-links a:not(.btn-nav):hover::after {
    width: 100%;
}

.btn-nav {
    background-color: var(--accent);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 4px;
}

.btn-nav:hover {
    background-color: var(--accent-hover);
}

.menu-toggle {
    display: none;
    color: var(--dark);
    /* Siempre oscuro */
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Espacio para el navbar fijo al hacer scroll */
}

.hero {
    height: calc(100vh - 80px);
    /* 100vh menos la altura del navbar */
    margin-top: 80px;
    /* Empujar hacia abajo para dejar el espacio del header */
    min-height: 500px;
    --hero-overlay: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    background: var(--hero-overlay), url('images/hero/WhatsApp%20Image%202026-03-04%20at%209.50.24%20AM.jpeg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    padding-top: 80px;
}

.hero.no-overlay {
    --hero-overlay: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
}

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

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Indicador de Scroll */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    gap: 10px;
    opacity: 0.8;
    transition: var(--transition);
    z-index: 10;
}

.scroll-indicator:hover {
    opacity: 1;
    color: var(--accent);
}

.scroll-text {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator i {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

/* Secciones Generales */
.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

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

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Nosotros */
.text-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.price-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    background-color: var(--bg-light);
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent);
}

.price-label {
    font-size: 0.9rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-amount {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.price-period {
    font-size: 0.9rem;
    color: var(--gray);
}

.text-content p {
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.stat {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    color: var(--gray);
}

.stat .number {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.img-rounded {
    border-radius: 8px;
}

.shadow {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Galería (Actualizado a Slider) */
.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

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

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

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 75, 80, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-item .overlay i {
    color: var(--white);
    font-size: 2rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover .overlay i {
    transform: translateY(0);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding: 50px 20px 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    animation: zoomIn 0.3s;
    transition: transform 0.2s ease;
    transform-origin: center center;
    cursor: zoom-in;
}

.lightbox-content.zoomed {
    cursor: zoom-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-lightbox:hover {
    color: #bbb;
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
    border: 1px solid #f1f5f9;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.3rem;
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Contacto */
.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-top: 5px;
}

.contact-item h4 {
    font-family: var(--font-sans);
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--accent);
}

/* Formulario */
.contact-form-container {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 8px;
    color: var(--dark);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 75, 80, 0.1);
}

/* Footer */
.footer {
    background-color: #0d1b2a;
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

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

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

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

.footer-social a:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Utils - Animaciones Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .two-columns {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .text-content {
        order: -1;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.2rem;
        /* Reducir tamaño de fuente en móviles para asegurar 1 sola línea */
        letter-spacing: 1px;
    }

    .nav-links {
        position: fixed;
        background-color: var(--white);
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        flex-direction: column;
        justify-content: center;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--dark) !important;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .navbar.scrolled .menu-toggle {
        color: var(--dark);
    }

    .menu-toggle.active i::before {
        content: "\f00d";
        /* fa-times */
        color: var(--dark);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .contact-form-container {
        padding: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}