/* ======= GLOBAL ======= */
@charset "utf-8";

/* Oculta el botón hamburguesa por defecto */
.hamburguesa {
    display: none;
}

html {
    scroll-padding-top: 100px;
    scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
}
/* ===== Reset básico ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
}
/* ======= HEADER Y MENÚ ======= */
header {
    width: 100%;
    background: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}
.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-left img {
    height: 40px;
}
.nav-left span {
    font-size: 1.4rem;
    font-weight: bold;
    color: #003366;
}
.nav-right {
    display: flex;
    gap: 25px;
}
.nav-right a {
    text-decoration: none;
    color: #003366;
    font-size: 1rem;
    transition: color 0.3s ease;
}
.nav-right a:hover {
    color: orange !important;
}
.menu {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    font-size: 1.1rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: bold;
    color: #0a3763;
}
.logo img {
    height: 50px;
    width: auto;
}
.menu ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.menu ul li a {
    text-decoration: none;
    color: #0a3763;
    transition: color 0.3s;
}
.menu ul li a:hover {
    color: orange;
}
/* ======= HERO ======= */
.hero {
    min-height: 90vh;
    background-image: url("imagenes/Rescate.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding-top: 70px;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 43, 91, 0.5);
}
.hero-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}
.hero-content.visible {
    opacity: 1;
    transform: translateY(0);
}
.hero h1 {
    font-size: 4rem;
    margin: 0;
}
.hero p {
    font-size: 1.3rem;
    margin: 10px 0 0;
}
/* ======= SERVICIOS ======= */
.servicios {
    display: flex;
    width: 100%;
    min-height: 800px;
}
.servicios-left {
    flex: 0 0 35%;
    background-color: #eaf3f5;
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.servicios-left img {
    width: 85%;
    max-width: 350px;
    height: auto;
    margin-bottom: 15px;
}
.servicios-left h2 {
    color: #1a5a8c;
    font-size: 2.5rem;
    margin: 15px 0 0;
}
.servicios-right {
    flex: 1;
    background-color: #fff;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 40px;
    box-sizing: border-box;
    text-align: left;
}
.columna {
    flex: 1 1 45%;
    padding: 20px;
    box-sizing: border-box;
    font-size: 1.1rem;
    line-height: 1.7;
}
.columna ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.columna li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 22px;
}
.columna li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: #1a5a8c;
    border-radius: 1px;
}
/* ======= VISIÓN / MISIÓN ======= */
.vision-mision {
    background-color: #0a3763;
    color: white;
    text-align: center;
    padding: 50px 20px;
}
.vision-mision .vision, .vision-mision .mision {
    max-width: 900px;
    margin: 0 auto 40px auto;
}
.vision-mision h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}
.vision-mision h2 strong {
    font-weight: bold;
}
.vision-mision p {
    font-size: 1rem;
    line-height: 1.8;
}
/* ======= SERVICIOS DINÁMICOS (SLIDER) ======= */
.servicios-dinamicos {
    position: relative;
    overflow: hidden;
    height: 500px;
}
.servicio-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease;
}
.servicio-item.active {
    opacity: 1;
    z-index: 2;
}
.contenido-servicio {
    display: flex;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}
.texto-servicio {
    flex: 2;
}
.texto-servicio h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}
.texto-servicio p {
    font-size: 1.1rem;
    line-height: 1.6;
}
.imagen-servicio {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    width: 100%;
    height: 300px;
}
.servicio-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 0;
}
.contenido-servicio {
    position: relative;
    z-index: 1;
}
.flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}
.flecha-izquierda {
    left: 20px;
}
.flecha-derecha {
    right: 20px;
}
.flecha:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
/* ======= NOSOTROS ======= */
.nosotros {
    background-color: #f8f8f8;
    padding: 50px 20px;
    text-align: center;
}
.nosotros .contenedor-nosotros {
    max-width: 900px;
    margin: 0 auto;
    color: #333;
}
.nosotros h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #0a3763;
}
.nosotros p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}
/* ======= CONTACTO ======= */
.contacto {
    position: relative;
    color: white;
    padding: 50px 20px;
    overflow: hidden;
    min-height: 400px;
}
.contacto::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: linear-gradient(rgba(0, 43, 91, 0.7), rgba(0, 43, 91, 0.7)), url("imagenes/Contacto.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.contacto-derecha a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}
.contacto-derecha a:hover {
    color: orange;
}
.contacto-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
.contacto-izquierda {
    flex: 1 1 30%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
.contacto-izquierda h2 {
    font-size: 2.5rem;
    font-weight: bold;
}
.contacto-derecha {
    flex: 1 1 70%;
    padding: 20px;
}
.contacto-derecha h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.contacto-derecha p {
    margin-bottom: 10px;
    line-height: 1.6;
}
.contacto-derecha form {
    margin-top: 20px;
}
.contacto-derecha input, .contacto-derecha textarea {
    width: calc(50% - 10px);
    margin: 5px;
    padding: 10px;
    border: none;
}
.contacto-derecha textarea {
    width: calc(100% - 10px);
    height: 100px;
    resize: none;
}
.contacto-derecha button {
    background-color: orange;
    border: none;
    color: white;
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.contacto-derecha button:hover {
    background-color: #cc7000;
}
/* ======= FOOTER ======= */
.footer {
    background-color: #ffffff;
    border-top: 3px solid #003366;
    padding: 20px 0;
    width: 100%;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.footer-copy {
    color: #003366;
    font-size: 0.95rem;
    margin-bottom: 10px;
}
.social-icons {
    display: flex;
    gap: 20px;
}
.social-icons img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.social-icons img:hover {
    transform: scale(1.15);
}

/* ======= RESPONSIVE ======= */
@media (max-width: 1024px) {
    .servicios {
        flex-direction: column;
    }
    .servicios-left, .servicios-right {
        flex: 1 1 100%;
    }
    .servicios-right {
        padding: 20px;
    }
    .columna {
        flex: 1 1 100%;
    }
}
@media (max-width: 768px) {
    .contacto-container {
        flex-direction: column;
    }
    .contacto-izquierda, .contacto-derecha {
        flex: 1 1 100%;
        text-align: center;
    }
    .contacto-derecha input, .contacto-derecha textarea {
        width: 100%;
    }
}
@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* ==========================
   MENÚ RESPONSIVE (≤1024px)
   ========================== */
.hamburguesa {
    display: none;
}

@media (max-width: 1024px) {
    .hamburguesa {
        display: block;
        background: none;
        border: none;
        font-size: 2rem;
        color: #0a3763;
        cursor: pointer;
        position: absolute;
        top: 15px;
        right: 20px;
        z-index: 110;
    }

    .menu {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .menu ul {
        display: none !important;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background-color: white;
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }

    .menu ul.show {
        display: flex !important;
    }

    .menu ul li {
        margin-bottom: 10px;
    }

    .menu ul li a {
        font-size: 1.2rem;
        color: #0a3763;
        text-decoration: none;
    }

    .menu ul li a:hover {
        color: orange;
    }
}

/* ==========================
   HERO RESPONSIVE (texto + imagen)
   ========================== */
@media (max-width: 1024px) {
    .hero {
        min-height: 75vh;
        background-position: center center;
        background-size: cover;
        padding: 40px 20px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 65vh;
        padding: 30px 15px;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
  .hero {
    min-height: 100vh;
    padding: 20px;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    max-width: 100%;
    padding: 0 10px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 1.6rem !important;
    line-height: 1.2;
    word-break: break-word;
  }

  .hero-content p {
    font-size: 0.95rem !important;
    margin-top: 10px;
  }
}

/* ==========================
   SLIDER DE SERVICIOS DINÁMICOS
   ========================== */
@media (max-width: 1024px) {
    .servicios-dinamicos {
        height: 450px;
    }

    .texto-servicio h3 {
        font-size: 1.7rem;
    }

    .texto-servicio p {
        font-size: 1rem;
    }

    .flecha {
        font-size: 2rem;
        padding: 8px;
    }
}

@media (max-width: 768px) {
    .servicios-dinamicos {
        height: 400px;
    }

    .contenido-servicio {
        flex-direction: column;
        padding: 15px;
        text-align: center;
    }

    .texto-servicio h3 {
        font-size: 1.4rem;
    }

    .texto-servicio p {
        font-size: 0.95rem;
    }

    .flecha {
        font-size: 2rem;
        padding: 6px;
        top: 45%;
    }
}

@media (max-width: 480px) {
    .servicios-dinamicos {
        height: 360px;
    }

    .contenido-servicio {
        padding: 10px;
    }

    .texto-servicio h3 {
        font-size: 1.2rem;
    }

    .texto-servicio p {
        font-size: 0.85rem;
    }

    .flecha {
        font-size: 1.8rem;
        padding: 5px;
    }
}

/* ==========================
   FOOTER RESPONSIVE
   ========================== */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
  }

  .footer-copy {
    font-size: 1rem;
  }

  .social-icons {
    justify-content: center;
    gap: 15px;
  }

  .social-icons img {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .footer-copy {
    font-size: 0.95rem;
  }

  .social-icons img {
    width: 35px;
    height: 35px;
  }
}

