/* ============================================================
   MISION-VISION.CSS
   Estilos exclusivos para la página de Misión y Visión.
   Los estilos compartidos (header, nav, footer) vienen de style.css
   Estructura:
   1. Hero image
   2. Breadcrumb
   3. Contenido principal (Misión, Visión, Valores)
   4. Responsive
============================================================ */


/* ============================================================
   1. HERO IMAGE
   - Imagen de ancho completo con overlay y título
============================================================ */

/* Hero a pantalla completa debajo del navbar flotante */
.mv-hero {
    position: relative;
    width: 100%;
    height: 55vh;
    overflow: hidden;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* La imagen ocupa todo el espacio del hero */
.mv-hero-imagen {
    width: 100%;
    height: 100%;
}

.mv-hero-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Overlay oscuro sobre la imagen para legibilidad del texto */
.mv-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 18, 38, 0.4),
        rgba(0, 18, 38, 0.75)
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;   /* Texto pegado abajo como en la imagen */
    align-items: flex-start;
    padding: 40px 8%;
}

.mv-hero-overlay h2 {
    font-size: 3.5rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 900;
    line-height: 1;
}

/* La palabra "&" en dorado institucional */
.mv-hero-overlay h2 span {
    color: #daa520;
}

.mv-hero-overlay p {
    font-size: 1.1rem;
    color: #dddddd;
    margin-top: 10px;
    letter-spacing: 1px;
}


/* ============================================================
   2. BREADCRUMB (ruta de navegación)
   - Muestra "Inicio > Misión y Visión"
============================================================ */
.breadcrumb {
    background-color: #f5f5f5;
    padding: 12px 0;
    border-bottom: 1px solid #eeeeee;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8%;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb-container a {
    color: #001f3f;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.breadcrumb-container a:hover {
    color: #ff4136;
}

.breadcrumb-container i {
    color: #aaaaaa;
    font-size: 0.7rem;
}

.breadcrumb-container span {
    color: #888888;
}


/* ============================================================
   3. CONTENIDO PRINCIPAL
   - Bloques de Misión y Visión con ícono lateral
   - Grid de valores al final
============================================================ */
.mv-main {
    padding: 70px 20px;
    background-color: #ffffff;
}

.mv-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Bloque individual (Misión o Visión) */
.mv-bloque {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 20px;
}

/* Ícono circular a la izquierda */
.mv-icono {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background-color: #001f3f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 18, 38, 0.2);
}

.mv-icono i {
    font-size: 2rem;
    color: #daa520;
}

/* Texto del bloque */
.mv-texto h3 {
    font-size: 1.8rem;
    color: #001226;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid #ff4136;
    display: inline-block;
}

.mv-texto p {
    color: #555555;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

/* Línea separadora entre bloques */
.mv-separador {
    width: 100%;
    height: 1px;
    background-color: #eeeeee;
    margin: 40px 0;
}


/* ============================================================
   SECCIÓN DE VALORES
   - Grid de 4 tarjetas con ícono, título y descripción
============================================================ */
/* .mv-valores {
    margin-top: 20px;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 10px;
} */

/* Tarjeta de valor */
/* .valor-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    border-top: 4px solid #daa520;
    transition: transform 0.3s, box-shadow 0.3s;
}

.valor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.valor-card i {
    font-size: 2rem;
    color: #ff4136;
    margin-bottom: 12px;
    display: block;
}

.valor-card h4 {
    color: #001226;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.valor-card p {
    color: #777777;
    font-size: 0.9rem;
} */


/* cartas */

.services-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 50px;
  font-family: sans-serif;
}

/* La tarjeta principal */
.card {
  background-color: transparent;
  width: 250px;
  height: 350px;
  perspective: 1000px; /* Necesario para el efecto 3D */
}

/* El contenedor interno que realmente gira */
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  cursor: pointer;
}

/* Cuando el mouse pasa por encima, gira 180 grados */
.card:hover .card-inner {
  transform: rotateY(180deg);
}

/* Estilo común para ambas caras */
.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Oculta la cara de atrás */
  backface-visibility: hidden;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Cara Frontal */
.card-front {
  color: white;
}

.color-1 { background-color: #e67e22; } /* Naranja */
.color-2 { background-color: #27ae60; } /* Verde */

/* Cara Trasera (inicialmente rotada 180 grados) */
.card-back {
  background-color: #f1f1f1;
  color: #333;
  transform: rotateY(180deg);
  border: 2px solid #ddd;
}

.btn {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: white;
  border: 2px solid #333;
  font-weight: bold;
  cursor: pointer;
}



/* ============================================================
   4. RESPONSIVE
============================================================ */
@media (max-width: 768px) {

    /* Hero más pequeño en móvil */
    .mv-hero {
        height: 40vh;
    }

    .mv-hero-overlay h2 {
        font-size: 2.2rem;
    }

    /* Bloque en columna en móvil */
    .mv-bloque {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .mv-texto h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {

    .mv-hero-overlay h2 {
        font-size: 1.8rem;
    }

    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   NUEVO DISEÑO: BLOQUES MISIÓN Y VISIÓN
   - Imagen y texto lado a lado
   - Alternado: imagen izquierda / imagen derecha
   - Bordes redondeados y fondo gris claro
============================================================ */

/* Fondo gris claro para la sección */
.mv-main {
    padding: 60px 20px;
    background-color: #f4f4f4; /* Gris claro como en la imagen */
}

/* Bloque individual */
.mv-bloque-nuevo {
    display: flex;
    align-items: stretch;
    border-radius: 20px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    margin-bottom: 30px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* Bloque invertido: texto izquierda, imagen derecha */
.mv-bloque-invertido-nuevo {
    flex-direction: row; /* texto primero, luego imagen */
}

/* Lado de la imagen */
.mv-imagen-lado {
    flex: 1;
    min-height: 380px;
    overflow: hidden;
    position: relative;
}

.mv-imagen-lado img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.mv-bloque-nuevo:hover .mv-imagen-lado img {
    transform: scale(1.04);
}

/* Lado del texto */
.mv-texto-lado {
    flex: 1;
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff;
}

.mv-texto-lado h3 {
    font-size: 2rem;
    color: #001226;
    font-weight: 900;
    margin-bottom: 20px;
    border-bottom: none; /* Quitamos el borde rojo anterior */
}

.mv-texto-lado p {
    color: #444444;
    font-size: 0.98rem;
    line-height: 1.85;
    text-align: justify;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .mv-bloque-nuevo,
    .mv-bloque-invertido-nuevo {
        flex-direction: column;
    }

    .mv-imagen-lado {
        min-height: 250px;
    }

    .mv-texto-lado {
        padding: 30px 25px;
    }

    .mv-texto-lado h3 {
        font-size: 1.6rem;
    }
}