/* Variables de colores basadas en paleta-colores.jpg */
:root {
    --color-primary: #092E40;
    /* Azul oscuro principal */
    --color-secondary: #5E2D3B;
    /* Rojo/Borgoña oscuro */
    --color-accent: #82B2C2;
    /* Celeste/Azul claro */
    --color-light: #F9F6F0;
    /* Beige muy claro / Blanco roto */
    --color-beige: #F0DCD0;
    /* Beige */
    --color-text: #333333;
    --color-white: #FFFFFF;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

/* Tipografía y Utilidades */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary);
}

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

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--color-secondary);
    transition: width 0.3s;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.text-white {
    color: var(--color-white) !important;
}

.text-dark {
    color: var(--color-text) !important;
}

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

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

.bg-dark {
    background-color: #0b1a23;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.w-100 {
    width: 100%;
}

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

/* Botones */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    font-family: var(--font-body);
}

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

.btn-primary:hover {
    background-color: #7a3a4c;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(94, 45, 59, 0.2);
}

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

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

/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.4s ease-in-out;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.navbar.scrolled {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    /*padding: 10px 0;*/
    background-color: #08151d;
    /* Color mucho más oscuro */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-white);
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: var(--color-light);
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition);
    font-size: 1rem;
}

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

.hamburger {
    display: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('../img/bannerprincipal.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-hero {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    /* Dimensiones actualizadas */
    height: 180px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Capa oscura sutil */
    z-index: 1;
}

.hero-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    background: linear-gradient(to bottom, transparent, #0b1d28);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--color-white);
    max-width: 900px;
    margin-top: 150px;
    /* Empuja el contenido más abajo */
}

.hero-content h1 {
    font-size: 2.8rem;
    /* Título más chico */
    color: var(--color-white);
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 400;
}

.hero-content h1 strong {
    font-weight: 700;
}

.separator {
    width: 80px;
    height: 2px;
    background-color: var(--color-white);
    margin: 30px auto;
}

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

.justify-center {
    justify-content: center !important;
}

.btn-outline-white {
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid var(--color-white);
    background-color: transparent;
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-solid-white {
    display: inline-block;
    padding: 15px 40px;
    background-color: #e0e0e0;
    color: #111;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #e0e0e0;
}

.btn-solid-white:hover {
    background-color: var(--color-white);
    border-color: var(--color-white);
}

.hero-sub {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 20px;
    font-weight: 300;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

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

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

/* Features & Diferencial */
.feature-card {
    background: var(--color-light);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.diff-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.diff-card:hover {
    transform: translateY(-10px);
}

.diff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-secondary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.diff-card:hover::before {
    transform: scaleX(1);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.icon-wrapper i {
    font-size: 2rem;
    color: var(--color-primary);
}

/* Galería */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    height: 250px;
    cursor: pointer;
    /* Indicar que es clickeable */
}

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

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

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

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--color-white);
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2001;
}

.lightbox-close:hover {
    color: var(--color-accent);
}

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

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

/* Cotizador */
.cotizador-text img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
}

.cotizador-form {
    padding: 10px;
}



/* Contacto */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

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

.contact-item i {
    font-size: 3rem;
    color: #25D366;
    /* WhatsApp color */
    margin-bottom: 15px;
}

.contact-item .fa-clock {
    color: var(--color-secondary);
}

.contact-item a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.3s;
}

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

/* Footer */
.footer {
    padding: 30px 0;
}

/* Animaciones CSS (Scroll y Load) */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.pop-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.is-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Responsive */
@media (max-width: 992px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h1 span {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
        line-height: 1.25em;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background-color: var(--color-primary);
        flex-direction: column;
        justify-content: center;
        transition: 0.5s;
    }

    .nav-links.active {
        right: 0;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero {
        background-attachment: scroll;
    }
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
}