/* Paleta principal */
:root {
    --azul: #0056A3;
    --azul-oscuro: #003F7D;
    --gris: #f4f4f4;
}

/* Reset */
body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    color: var(--azul-oscuro);

    /* Para que el footer quede abajo */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* CABECERA */
header {
    background: white;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--azul);
    height: 110px;
}

/* LOGO */
.logo-img {
    height: 100%;
    max-height: 130px;
    width: auto;
}

/* NAV */
nav a {
    margin-left: 25px;
    text-decoration: none;
    color: var(--azul);
    font-weight: 600;
    font-size: 25px;
}
nav a:hover {
    color: var(--azul-oscuro);
}

/* HERO */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(50%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 0 20px;
}
.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}
.hero p {
    font-size: 18px;
    margin-bottom: 25px;
}

/* BOTÓN */
.btn {
    background: var(--azul);
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}
.btn:hover {
    background: var(--azul-oscuro);
}

/* ------------------------------ */
/*      SECCIÓN POR QUÉ ELEGIRNOS */
/* ------------------------------ */

.porque-elegirnos {
    position: relative;
    padding: 120px 0;
    margin-top: 60px;
}

.porque-elegirnos .bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.85);
}

.porque-elegirnos .contenido {
    text-align: center;
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.porque-elegirnos h2 {
    font-size: 2.6rem;
    
    color: var(--azul);
    margin-bottom: 40px;
}

/* Cards */
.porque-elegirnos .cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: nowrap;   /* Mantiene las 3 tarjetas en una fila */
}

.porque-elegirnos .card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    width: 330px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    text-align: left;
    transition: 0.2s ease;
}

.porque-elegirnos .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(38, 207, 230, 0.25);
}

.porque-elegirnos .card .icon {
    font-size: 40px;
    color: var(--azul);
    margin-bottom: 15px;
}

.porque-elegirnos .card h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--azul);
    margin-bottom: 10px;
}

.porque-elegirnos .card p {
    font-size: 15px;
    color: var(--azul);
    line-height: 1.5;
}

/* ------------------------------ */
/*            SERVICIOS           */
/* ------------------------------ */

.services {
    padding: 60px 20px;
    background: var(--gris);
    text-align: center;
}

.service-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.service-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    width: 330px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    text-align: center;
    position: relative;
    transition: 0.3s; /* Animación igual que en .card */
}

/* Íconos */
.service-card .service-icon {
    font-size: 40px;
    color: var(--azul);
    margin-bottom: 15px;
}

/* Hover idéntico al de las tarjetas de "Por qué elegirnos" */
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(38, 207, 230, 0.25); /* El mismo azul suave */
}

.service-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--azul);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 15px;
    color: var(--azul);
    line-height: 1.5;
    text-align: center;
}


/* ------------------------------ */
/*        Call To Action          */
/* ------------------------------ */

.cta {
    padding: 70px 20px;
    text-align: center;
}
.cta h2 {
    font-size: 32px;
    color: var(--azul-oscuro);
    margin-bottom: 25px;
    font-weight: 700;
}

.cta .btn {
    font-size: 18px;
    padding: 14px 30px;
    border-radius: 6px;
}



/* ------------------------------ */
/*             FOOTER             */
/* ------------------------------ */

footer {
    background: white;
    border-top: 2px solid var(--azul);
    text-align: center;
    padding: 10px;
    color: var(--azul-oscuro);

    /* Esto hace que el footer se pegue al fondo */
    margin-top:auto
}

/* --- Ajustar el título "Nuestros Servicios" --- */
.services h2 {
    font-size: 2.6rem;      /* MÁS GRANDE */
    margin-bottom: 40px;    /* Espacio debajo del título */
    text-align: center;
}

/* --- Espacio entre tarjetas y sección de contacto --- */
.services {
    padding-bottom: 80px;   /* Añade espacio bajo TODO el bloque */
}

/* --- Ajustar altura de las tarjetas para que no estiren la sección --- */
.service-cards {
    margin-bottom: 60px;    /* Espacio entre las tarjetas y el "¿Quieres contactarte?" */
}



/* añadir esto UNA sola vez en styles.css (al final) */
.fade-auto {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-auto.visible {
  opacity: 1;
  transform: translateY(0);
}
