/* =========================
   VARIABLES
========================= */
:root {
    --primary: #0a6ebd;
    --secondary: #0d3b66;
    --light: #f5f7fa;
    --dark: #1f2933;
}

/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   BASE
========================= */
body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.6;
}

/* =========================
   NAVBAR
========================= */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary);
}

.logo img {
    height: 100px;
    width: auto;
}

.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    transition: color .2s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* =========================
   HERO
========================= */
.hero {
    margin-top: 80px;
    min-height: 90vh;
    background: linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6)),
    url('img/img8.jpg') center/cover no-repeat;
    color: #fff;
    padding: 120px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    animation: fadeUp 1s ease;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 25px;
}

/* =========================
   BUTTONS
========================= */
.btn {
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform .2s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: var(--primary);
}

.btn:hover {
    transform: translateY(-3px);
}

/* =========================
   SECTIONS
========================= */
.container {
    max-width: 1200px;
    margin: auto;
}

section h2 {
    margin-bottom: 50px;
  
    font-size: 2.3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}
/* =========================
   WHO WE SERVE – DIAGONAL FLOW (FINAL)
========================= */

.features-section {
    padding: 40px 20px;
    background: #f4f7fa;
}

/* CONTENEDOR GENERAL */
.features-container {
    max-width: 1200px;
    margin: auto;
    overflow: hidden; /* limpia float */
}

/* IMAGEN DIAGONAL */
.diagonal-image {
    float: left;
    width: 620px;
    height: 520px;
    margin-right: 40px;
    margin-bottom: 25px;

    /* El texto respeta esta forma */
    shape-outside: polygon(
        0 0,
        78% 0,
        100% 100%,
        0 100%
    );
    shape-margin: 28px;

    /* Corte visual */
    clip-path: polygon(
        0 0,
        78% 0,
        100% 100%,
        0 100%
    );
}

.diagonal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    box-shadow: 0 18px 45px rgba(0,0,0,0.18);
}

/* CONTENIDO TEXTO */
.feature-content {
    padding-top: 20px;
}

/* TÍTULO */
.feature-content h2 {
    font-size: 2.4rem;
    color: black;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-bottom: 20px;
    background: #2f90ea;
}

/* PÁRRAFOS */
.feature-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* LISTA QUE SIGUE LA DIAGONAL */
.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 28px;
}

/* ITEM DE LISTA */
.feature-list li {
    display: grid;
    grid-template-columns: 54px 1fr; /* icono + texto */
    column-gap: 24px;

    margin-bottom: 26px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark);
    line-height: 1.6;
}

/* ICONOS */
.feature-list i {
    font-size: 2rem;
    color: var(--primary);
    line-height: 1;
    margin-top: 3px;
}

/* TEXTO LISTA */
.feature-list span {
    display: block;
}

/* =========================
   RESPONSIVE (MÓVIL)
========================= */
@media (max-width: 992px) {
    .diagonal-image {
        float: none;
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 30px;

        shape-outside: none;
        clip-path: none;
    }

    .diagonal-image img {
        height: auto;
    }

    .feature-content {
        padding-top: 0;
        text-align: center;
    }

    .feature-list li {
        grid-template-columns: 44px 1fr;
        justify-content: center;
        text-align: left;
    }
}


/* =========================
   SERVICES (Our Services)
========================= */
.services-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: auto;
}
.services-section
{
    padding: 35px;
}
.services-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
.titleser{
    color: var(--primary);
}

/* Centrar SOLO la card con clase service-center */
.services-cards .service-center {
    justify-self: center;   /* centra dentro del grid */
    max-width: 500px;       /* controla el ancho */
    width: 100%;            /* mantiene visible */
}
.service-card-img {
    position: relative;
    height: 180px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0,0,0,0.18);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75);
    transition: transform 0.6s ease;
}

.service-card-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

.service-content {
    position: absolute;
    inset: 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    z-index: 2;
}

.services-cards h3 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.services-cards p {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    line-height: 1.5;
}

.service-card-img:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 65px rgba(0,0,0,0.35);
}

.service-card-img:hover img {
    transform: scale(1.12);
    filter: brightness(0.6);
}

/* 🔥 CENTRAR ÚLTIMA CARD */
.services-cards .service-card-img:last-child {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
}
/* =========================
   WHY CHOOSE US – SPLIT SECTION (ALINEADO)
========================= */
.why-choose-section {
    padding: 90px 20px;
    background: #f4f7fa;
}

.why-choose-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: stretch; /* CLAVE para igualar alturas */
}

/* Texto */
.why-choose-content {
    display: flex;
    flex-direction: column;
}

.why-choose-content h2 {
    font-size: 2.4rem;        /* un poco más compacto */
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-bottom: 16px;
}

.why-intro {
    font-size: 1.05rem;      /* más compacto */
    color: #555;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* LISTA EN RECTÁNGULOS */
.why-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.why-list li {
    background: #eef2f6;
    border-left: 6px solid var(--primary);
    padding: 14px 20px;      /* menos alto */
    margin-bottom: 12px;     /* menos separación */

    font-size: 1rem;         /* texto ligeramente menor */
    font-weight: 500;
    color: var(--dark);
    line-height: 1.45;

    border-radius: 4px;
}

/* Imagen derecha */
.why-choose-image {
    width: 100%;
    height: 540px;           /* MÁS ALTA para igualar texto */
}

.why-choose-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    clip-path: polygon(
        22% 0,
        100% 0,
        100% 100%,
        0 100%
    );

    box-shadow: 0 18px 45px rgba(0,0,0,0.18);
}

/* Responsive */
@media (max-width: 768px) {
    .why-choose-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .why-choose-image {
        height: 300px;
        margin-top: 30px;
    }

    .why-choose-image img {
        clip-path: none;
    }

    .why-list {
        text-align: left;
        margin: 0 auto;
    }
}

/* =========================
   SAFETY SECTION
========================= */
.safety-care {
    padding: 90px 20px;
    background: linear-gradient(135deg, var(--primary), #0f4c5c);
    color: #fff;
}

.safety-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 50px;
    align-items: center;
}

.safety-icon i {
    font-size: 6rem;
}
/* =========================
   SERVICE AREA – BEACH + SIDE CARD
========================= */
.service-area-beach {
    position: relative;
    padding: 30px 20px;
    background: url('img/img0.jpg') center / cover no-repeat;
}

/* Layout general */
.service-area-layout {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: flex-end; /* CAJA A LA DERECHA */
}

/* Caja blanca */
.service-area-box {
    background: rgba(255, 255, 255, 0.92);
    width: 520px;
    padding: 50px 45px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* Título */
.service-area-title {
    font-size: 2.3rem;
    color: var(--secondary);
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

/* Intro */
.service-area-intro {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Grid de ciudades */
.area-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 30px;
}

/* Cards */
.area-card {
    background: #ffffff;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2933;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Nota */
.area-note {
    font-size: 1rem;
    color: #333;
    background: #eef6fb;
    border-left: 5px solid var(--primary);
    padding: 16px 18px;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .service-area-layout {
        justify-content: center;
    }

    .service-area-box {
        width: 100%;
        padding: 40px 25px;
    }

    .service-area-title {
        font-size: 2rem;
    }
}


/* =========================
   CTA CON IMAGEN DE FONDO
========================= */
.cta {
    position: relative;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
        url('img/img16.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 120px 20px;
}

.cta h2 {
    font-size: 2.6rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.cta p {
    font-size: 1.15rem;
    margin-bottom: 35px;
}

.cta .btn-secondary {
    background: #ffd700;
    color: #0d3b66;
}


/* =========================
   FOOTER CON LOGO
========================= */
.site-footer {
    background: #ffffff;
    color: #000000;
    padding: 60px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: center;
}

.footer-logo img {
    height: 140px;
    width: auto;
}

.footer-info p {
    margin: 6px 0;
    font-size: 0.95rem;
}

.footer-info strong {
    color: #000000;
    font-size: 1.1rem;
}

.footer-info a {
    color: #a99834;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        margin-bottom: 20px;
    }
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.1rem;
    }

    .services-cards {
        grid-template-columns: 1fr;
    }

    .diagonal-image {
        float: none;
        width: 100%;
        height: 300px;
        margin: 0 auto 30px;
        clip-path: none;
        shape-outside: none;
    }

    .safety-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
/* =========================
   MOBILE NAV – HAMBURGER
========================= */

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
}

/* MOBILE */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 25px 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.12);

        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 0;
        font-size: 1.1rem;
    }
}
/* HERO BUTTON SPACING (MOBILE) */
@media (max-width: 768px) {
    .hero .btn {
        display: block;
        margin: 12px auto;
        width: 90%;
        max-width: 320px;
    }
}
/* SERVICES MOBILE PADDING FIX */
@media (max-width: 768px) {
    .services-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .services-cards {
        gap: 20px;
    }
}

/* =========================================================
   MOBILE LANDSCAPE FIXES
   SOLO PARA MÓVIL GIRADO (NO TOCA DESKTOP NI TABLET)
========================================================= */
@media (max-width: 992px) and (orientation: landscape) {

    /* -----------------------------
       HEADER / NAV
    ----------------------------- */

    /* Reducir logo SOLO en landscape */
    .logo img {
        height: 60px;
        width: auto;
    }

    /* Menú hamburguesa no ocupar toda la pantalla */
    .nav-links {
        padding-top: 15px;
        padding-bottom: 20px;
    }

    .nav-links.active {
        max-height: 80vh;       /* deja ver contenido detrás */
        overflow-y: auto;       /* scroll interno */
    }

    /* -----------------------------
       WHO WE SERVE
    ----------------------------- */

    /* Separar título de la imagen */
    .feature-content h2 {
        margin-top: 25px;
    }

    /* Alinear iconos con texto */
    .feature-list li {
        display: grid;
        grid-template-columns: 46px 1fr;
        column-gap: 18px;
        align-items: center;
    }

    .feature-list i {
        margin-top: 0;
    }

    /* -----------------------------
       SERVICES
    ----------------------------- */

    /* Altura correcta de cards */
    .services-cards .service-card-img {
        height: 200px;
    }

    /* Última card ocupar ancho completo */
    .services-cards .service-card-img.service-center {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    /* -----------------------------
       AJUSTES GENERALES
    ----------------------------- */

    section {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}
/* =====================================
   FIX: WHO WE SERVE - MOBILE HORIZONTAL
===================================== */
@media (max-height: 500px) and (orientation: landscape) {

    /* Sección completa */
    .features-section {
        padding-top: 80px; /* separa la sección del header */
    }

    /* Título WHO WE SERVE */
    .feature-content h2 {
        margin-top: 30px;
    }

    /* Imagen para que respire un poco */
    .diagonal-image {
        margin-bottom: 20px;
    }
}
/* =====================================
   FIX DEFINITIVO: WHO WE SERVE
   MOBILE HORIZONTAL
===================================== */
@media (max-height: 500px) and (orientation: landscape) {

    /* Quitar fondo azul del título */
    .who-we-serve-title,
    .features-section h2 {
        background: none !important;
        padding-top: 20px;
        padding-bottom: 20px;
        margin-top: 30px;
    }

    /* Separar imagen del texto */
    .diagonal-image {
        margin-bottom: 30px;
    }

    /* Ajuste general de la sección */
    .features-section {
        padding-top: 90px;
    }
}










/* =========================
   MISSION CAROUSEL
========================= */

.mission-carousel-section {
  margin: 120px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* TITLE WITH UNDERLINE */
.mission-title {
  text-align: center;
  margin-bottom: 60px;
}

.mission-title h2 {
  font-size: 36px;
  color: #1a4d8f;
  font-weight: 600;
  position: relative;
  display: inline-block;
  margin: 0;
}

.mission-title h2::after {
  content: "";
  display: block;
  margin: 12px auto 0;
  width: 120px;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(to right, #1a4d8f, #4fa3d1);
}

/* CAROUSEL WRAPPER */
.mission-carousel {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* CAROUSEL BOX */
.carousel-container {
  position: relative;
  max-width: 900px;
  width: 100%;
  min-height: 280px; /* ALTURA FIJA */
  background: #ffffff;
  padding: 50px 70px;
  border-radius: 20px;

  box-shadow:
    0 35px 70px rgba(0, 0, 0, 0.28),
    0 15px 30px rgba(0, 0, 0, 0.18);
}

/* SLIDES */
.carousel-slide {
  display: none;
  height: 100%;
}

.carousel-slide.active {
  display: flex;
  align-items: center;
}

.carousel-slide p {
  font-size: 17px;
  line-height: 1.8;
  color: #333;
}

/* ARROWS */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 36px;
  cursor: pointer;
  color: #1a4d8f;
  transition: opacity 0.3s;
}

.arrow.left {
  left: 20px;
}

.arrow.right {
  right: 20px;
}

.arrow.disabled {
  opacity: 0.25;
  cursor: default;
}






/* =========================
   CONTACT MODAL
========================= */

.contact-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.contact-modal-box {
  background: #ffffff;
  padding: 40px 35px;
  border-radius: 16px;
  text-align: center;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.contact-modal-box h3 {
  margin-bottom: 25px;
  font-size: 1.4rem;
  color: #1a4d8f;
}

/* OPTIONS */
.contact-option {
  display: block;
  padding: 14px;
  margin-bottom: 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.contact-option.call {
  background: #1a4d8f;
  color: #fff;
}

.contact-option.email {
  background: #eef3f8;
  color: #1a4d8f;
}

/* CANCEL */
.close-modal {
  background: none;
  border: none;
  color: #777;
  font-size: 0.95rem;
  margin-top: 10px;
  cursor: pointer;
}
