html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* 🔒 fix de seguridad */
    font-family: 'Montserrat', Arial, sans-serif;
    background-color: #F4F6F8;
    color: #2B2B2B;
}


/* ---------- HEADER ---------- */
.header {
    background-color: #0A2E4F;
    color: white;
    padding: 15px 40px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 55px;
}

/* ---------- NAV ---------- */
.nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    position: relative;
    flex-direction: row-reverse; /* 🔑 esto invierte el orden */
    gap: 20px;
}


/* BOTÓN HAMBURGUESA */
.menu-toggle {
    background: none;
    border: none;
    font-size: 32px;
    color: white;
    cursor: pointer;
    z-index: 2;
}

/* MENU HORIZONTAL OCULTO */
.nav-links {
    display: flex;
    gap: 25px;

    opacity: 0;
    transform: translateX(20px); /* sale desde la derecha */
    pointer-events: none;

    transition: opacity 0.35s ease, transform 0.35s ease;
}

.nav-links.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}


/* MENU VISIBLE */
.nav-links.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

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

/* ---------- HERO ---------- */
.hero {
    background:
        linear-gradient(
            rgba(10, 46, 79, 0.85),
            rgba(10, 46, 79, 0.85)
        ),
        url("img/mardelplata.jpg");
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 20px;
    text-align: center;
    box-shadow: inset 0 -60px 60px rgba(0,0,0,0.2);
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto;
}

/* ---------- SECTIONS ---------- */
.section {
    padding: 60px 40px;
    background-color: white;
    border-radius: 12px;
    margin: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.section h2 {
    text-align: center;
    color: #0B3C5D;
}

.section.gray {
    background-color: #F4F6F8;
    text-align: center;
}

.section.gray p {
    max-width: 800px;
    margin: 20px auto 0;
    font-size: 16px;
}

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

.card {
    background-color: #0A2E4F;
    color: white;
    padding: 35px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}

/* ---------- CONTACTO ---------- */
#contacto {
    text-align: center;
}

.contact-form {
    max-width: 500px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 15px;
    padding: 12px;
    font-family: 'Montserrat', sans-serif;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.contact-form button {
    background-color: #0A2E4F;
    color: white;
    border: none;
    padding: 12px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #114B7A;
}

/* ---------- FOOTER ---------- */
.footer {
    background-color: #0A2E4F;
    color: white;
    padding: 25px 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-contact span {
    margin-left: 20px;
    font-weight: 500;
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 34px;
    }

    .hero p {
        font-size: 18px;
    }

    .section {
        padding: 40px 20px;
        margin: 20px;
    }

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

    .footer-contact span {
        display: block;
        margin: 8px 0 0;
    }
}
.success-message {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
}


.success-box {
    background: white;
    padding: 35px 40px;
    border-radius: 12px;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);

    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}


.success-box h3 {
    color: #0A2E4F;
    margin-bottom: 15px;
}

.success-box p {
    font-size: 16px;
    line-height: 1.5;
}

.success-box button {
    margin-top: 20px;
    background-color: #0A2E4F;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.success-box button:hover {
    background-color: #114B7A;
}
.success-message.active {
    opacity: 1;
    visibility: visible;
}

.success-message.active .success-box {
    transform: translateY(0);
    opacity: 1;
}
.cta {
    text-align: center;
    background-color: #0A2E4F;
    color: white;
}

.cta p {
    margin: 15px 0 25px;
    font-size: 18px;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: #0A2E4F;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
/* ---------- POR QUÉ ELEGIRNOS ---------- */
.section.highlight {
    background-color: #0A2E4F;
    color: white;
    text-align: center;
}

.section.highlight h2 {
    color: white;
    margin-bottom: 40px;
}

.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.highlight-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 12px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.highlight-item h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.highlight-item p {
    font-size: 15px;
    line-height: 1.5;
}

.highlight-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}
.card {
    background-color: #0A2E4F;
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    min-height: 140px;
    transition: 
        transform 0.35s ease,
        box-shadow 0.35s ease,
        min-height 0.35s ease;
    overflow: hidden;
}

.card h3 {
    margin: 0;
    font-size: 18px;
}

.card p {
    margin-top: 15px;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.4;
    opacity: 0;
    max-height: 0;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

/* HOVER */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.3);
    min-height: 220px;
}

.card:hover p {
    opacity: 1;
    max-height: 200px;
}

@media (max-width: 768px) {

  .header {
    padding: 15px 20px;
  }

  .nav {
    margin-left: auto;
    flex-direction: row; /* 🔧 anula el row-reverse en mobile */
  }

  .menu-toggle {
    position: relative;
    right: 0;
  }
}
/* ACTIVACIÓN POR SCROLL (mobile) */
@media (max-width: 768px) {

  .card {
    min-height: auto;
    transform: none;
  }

  .card p {
    opacity: 0;
    max-height: 0;
    transition: opacity 0.4s ease, max-height 0.4s ease;
  }

  .card.active p {
    opacity: 1;
    max-height: 300px;
    margin-top: 12px;
  }

  .card:hover {
    transform: none;
    box-shadow: none;
  }
}
/* ===== FIX SCROLL / TOUCH MOBILE – SERVICIOS ===== */
@media (max-width: 768px) {

  .card {
    min-height: auto !important;
    transform: none !important;
  }

  .card p {
    opacity: 0 !important;
    max-height: 0 !important;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.4s ease;
  }

  .card.active p {
    opacity: 1 !important;
    max-height: 300px !important;
    margin-top: 12px;
  }

  .card:hover p {
    opacity: 0 !important;
    max-height: 0 !important;
  }
}
/* ===== FIX MENU MOBILE ===== */
@media (max-width: 768px) {

  .nav {
    position: relative;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #0A2E4F;
    flex-direction: column;
    width: 220px;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);

    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
  }

  .nav-links.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .nav-links a {
    font-size: 16px;
  }
}
