html {
    scroll-behavior: smooth;
    scroll-padding-top: 190px;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 30px;
    background-color: rgba(255, 255, 255, .80);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    top: 0;
    backdrop-filter: blur(10px);
    z-index: 10;
    transition: padding 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0; /* <--- Al poner 0 en ambos lados, se estira forzosamente */
}

header.scrolled {
    padding: 8px 30px;
}

.brand-logo {
    max-height: 60px;
    width: 200px;
    height: 120px;
    transition: max-height 0.3s ease, opacity 0.5s ease;
    opacity: 0;
    border-radius: 10px;
}

header .brand-logo {
    opacity: 1;
}

.hero .brand-logo {
    max-height: 260px;
    margin-bottom: 20px;
    opacity: 1;
    position: relative;
    z-index: 3;
}

header.scrolled .brand-logo {
    max-height: 50px;
    opacity: 1;
}

nav {
    display: flex;
    gap: 24px;
}

nav a {
    color: rgb(104, 197, 226);
    text-decoration: none;
    font-weight: 500;
    font-weight: 900;
}

nav a:hover {
    text-decoration: underline;
}

.hero {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 79vh;
    padding: 0;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.carousel-slide video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    z-index: 2;
}

.hero-content {
    width: 20rem;  
    max-width: 50rem;
    text-align: left;
    color: white;
    z-index: 3;
    font-size: 3.5rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 780px;
    margin: 0 auto;
}

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

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.carousel-dot:hover {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.75);
}

.carousel-dot.active {
    width: 18px;
    height: 18px;
    background: #5DADE2;
    box-shadow: 0 0 0 4px rgba(93, 173, 226, 0.18);
}

section {
    padding: 40px 20px;
}

.section-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.section-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-step.section-step-reverse {
    direction: rtl;
}

.section-step.section-step-reverse .section-content {
    direction: ltr;
}

.section-image img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    object-fit: cover;
}

.section-content {
    text-align: left;
    padding: 30px;
}

.section-content h2 {
    margin-top: 0;
    font-size: 5rem;
}

.section-content p,
.section-content ul {
    line-height: 1.8;
    color: #444;
}

.section-content ul {
    list-style: disc inside;
    padding-left: 0;
}

.section-content li {
    margin-bottom: 10px;
}

.section-step form {
    margin-top: 24px;
    display: grid;
    gap: 16px;
}

.section-step input,
.section-step textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}

.section-step button {
    max-width: 220px;
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.section-step button:hover {
    background-color: #1f2d3a;
}

.services {
    border-radius: 24px;
}

.video-section {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 40px 20px;
}

.video-card {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.video-card video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    color: white;
    text-align: center;
    background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.55) 100%);
}

.video-overlay h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 12px;
}

.video-overlay p {
    font-size: 1.05rem;
    max-width: 720px;
    line-height: 1.6;
}

footer {
    background-color: #121a24;
    color: #e4e7ec;
    text-align: left;
    padding: 40px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact-data {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.95rem;
    color: #c7d2dd;
}

.footer-contact-data strong {
    color: #5DADE2;
}

.footer-note {
    font-size: 0.9rem;
    color: #9aa5b1;
}

@media (max-width: 900px) {
    .section-step {
        grid-template-columns: 1fr;
    }
    .section-step.section-step-reverse {
        direction: ltr;
    }
}

section.highlight {
    animation: highlightPulse 2.5s ease-in-out;
    border-radius: 16px;
}

@keyframes highlightPulse {
    0% {
        background-color: rgba(93, 173, 226, 0.15);
    }
    100% {
        background-color: transparent;
    }
}

/* Modal de Contacto */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideDown 0.3s ease;
}

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

.modal-content h2 {
    margin-top: 0;
    color: #2c3e50;
}

.close-modal {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
}

#contact-form {
    display: grid;
    gap: 16px;
}

#contact-form label {
    font-weight: 600;
    color: #2c3e50;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: #5DADE2;
    box-shadow: 0 0 5px rgba(93, 173, 226, 0.3);
}

#contact-form button {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
}

#contact-form button:hover {
    background-color: #1f2d3a;
}

/* Sección de Misión, Visión y Valores */
.mission-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
}

.mission-item {
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 4px solid #5DADE2;
    border-radius: 6px;
}

.mission-item h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.mission-item p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

.mission-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mission-item li {
    padding: 8px 0;
    color: #555;
    line-height: 1.6;
}

.contact-button {
    background-color: #5DADE2;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: #3498db;
}

/* Animación para el logo en el header */
@keyframes logoFadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-logo.animated {
    animation: logoFadeInSlide 0.5s ease-out;
}
