
:root {
    --c1: #7cb03f;
    --c2: #074a8d;
    --dark: #333333;
    --gray: #555555;
    --light: #f4f4f4;
    --white: #ffffff;
    --h1: #7fb13e ;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth !important;
    scroll-padding-top: 90px;
    overflow-y: scroll !important;
}

body {
    font-family: var(--font-primary);
    color: var(--dark);
    line-height: 1.7;
    background-color: var(--white);
    transition: filter 0.3s ease;
    
}

body.modal-open {
    overflow: hidden;
}

main.blurred {
    transition: filter 0.3s ease 0.3s; /* espera 300ms antes de iniciar */
}
.indes{
    color: #016bff;
}
/* === HOVER PARA SABER MAS EN INDUSTRIAS === */
.industry-card-content .pp-hover {
  transition: color 0.25s, text-decoration 0.25s;
  cursor: pointer;
}
.industry-card-content .pp-hover:hover {
  color: #1ebe57 !important;
  transform: scale(1.2);
}
/* === BOTÓN FLOTANTE WHATSAPP === */
.whatsapp-sticky {
  position: fixed;
  z-index: 9999;
  right: 24px;
  bottom: 24px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.whatsapp-sticky:hover  {
  background: #1ebe57;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  transform: scale(1.08);
}
.whatsapp-sticky:hover .whatsapp-message {
    color: inherit !important;
    background-color: #25d366 !important;
    text-decoration: none !important;
    filter: none !important;
    transform: scale(0.9259) !important;
}
@media (max-width: 600px) {
  .whatsapp-sticky {
    right: 12px;
    bottom: 12px;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
}
/* Asegura que el loader tape el botón cuando esté activo */
#loader-bg {
  z-index: 10000;
}
/* === LOADER DE PANTALLA === */
#loader-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 6px solid var(--c1);
  border-top: 6px solid var(--c2);
  border-radius: 50%;
  animation: spinLoader 1s linear infinite;
  margin-bottom: 18px;
}

@keyframes spinLoader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-text {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  color: var(--c2);
  font-weight: 700;
  letter-spacing: 2px;
}
.ml-15{
    margin-left: 30px;
    margin-top: 20px;
}

/* --- UTILIDADES Y LAYOUT --- */
.container {
    height: 100%;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}
/* Contenedor del mensaje */
.whatsapp-message {
    position: absolute;
    right: 70px; /* Separación de la burbuja */
    bottom: 10px;
    background-color: #25d366;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateX(10px); /* Efecto de deslizamiento */
}

/* Flechita del mensaje */

/* Clase que activará el JS */
.whatsapp-message.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
section {
    padding: 80px 0;
}

.section-title {
    
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    color: var(--c2);
    margin-bottom: 10px;
    font-weight: 700;
}
.section-title h3 {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    color: var(--c2);
    margin-bottom: 10px;
    font-weight: 700;
}
.section-title p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* --- HEADER Y NAVEGACIÓN --- */
.header {
    background-color: var(--white);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--c2);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #66BB6A;
    margin-right: 10px;
    position: relative;
    background: 
        linear-gradient(45deg, transparent 49.5%, #66BB6A 49.5%, #66BB6A 50.5%, transparent 50.5%),
        linear-gradient(-45deg, transparent 49.5%, #66BB6A 49.5%, #66BB6A 50.5%, transparent 50.5%);
}
.logo span.bio {
    color: var(--c1);
}

.brand{padding:30px 0}
.brand .swiper{padding:20px 0}
.brand .swiper-slide{display:flex;justify-content:center!important;align-items:center!important;height:100%;margin:auto;user-select:none}
.brand .swiper-slide img{filter:grayscale(100%);transition:filter .3s ease;max-width:150px}
.brand .swiper-slide.swiper-slide-active img{filter:grayscale(0%)}
.swiper{box-sizing:border-box}


.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
    margin-left: 150px;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--c1);
}

.nav-cta{
    background-color: var(--c1);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transform: scale(1);
    transition: transform 0.6s ease; /* transición definida aquí */
}

.nav-cta:hover {
    transform: scale(1.1); /* sin redefinir transition */
}



.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--c2);
}
.pp-btn-cont{
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: 15px;
}
.pp-btn-cont a{
    width: 40px;
    height: 40px;
    border-radius: 50px;
    background-color: transparent;
    cursor: pointer;
    transition: all ease 0.3s;
}
.pp-btn-cont img{
    width: 40px;
    height: 40px;
}

.pp-btn-cont a:hover{
    transform: scale(1.1);
}

/* Utilidad: Oculta elementos (botones de idioma, menús móviles, etc.) */
.inactive, .off {
    display: none !important;
}
/* --- ESTILOS DEL SLIDER Y SUS IMÁGENES --- */
.slider{
    width: 100%;
    height: 110vh;
    margin: auto;
    position: relative; /* Esencial para que z-index y el posicionamiento absoluto de los hijos funcionen */
    overflow: hidden;
    /* Eliminamos el z-index negativo de aquí */
}

.slider .list{
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    display: flex;
    transition: 1s;
    z-index: 1; /* Le damos un z-index bajo para que el texto lo cubra */
}
.slider .list img{
    width: 100vw;
    height: 100%;
    object-fit: cover;
}

/* --- ESTILOS DE LOS BOTONES Y PUNTOS (NO CAMBIAN PERO LOS INCLUYO POR CONTEXTO) --- */
.slider .buttons{
    display: none;
}

.slider .dots{
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    z-index: 3; /* Aseguramos que los puntos estén encima del texto y las imágenes */
}
.slider .dots li{
    list-style: none;
    width: 10px;
    height: 10px;
    background-color: #fff;
    margin: 10px;
    border-radius: 20px;
    transition: 0.5s;
    cursor: pointer;
}
.slider .dots li.active{
    width: 30px;
    background-color: var(--h1);
}

/* --- ESTILOS DEL CONTENIDO HERO (TEXTO) --- */
#inicio {
    padding: 0; 
    height: 110vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-align: center;
    color: var(--white);
    z-index: 2;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content h1 {
    font-family: var(--font-secondary);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    width: 90%;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px; /* Mantenemos el max-width para el párrafo */
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    background-color: var(--c1);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background-color: var(--h1);
    transform: scale(1.05);
}

/* fade-in (si lo tienes en tu JS para animar la aparición del texto) */
/* Animación de aparición (fade-in) - versión optimizada y única */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- TRAJECTORY SECTION --- */
.trajectory-section {
    background-color: var(--light);
}

.trajectory-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}

.trajectory-item {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 290px;
}

.trajectory-item i {
    font-size: 3rem;
    color: var(--c1);
    margin-bottom: 15px;
}

.trajectory-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--c2);
}

.trajectory-item p {
    color: var(--gray);
    font-size: 1rem;
}

/* --- NOSOTROS SECTION --- */
.about-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-us-text h3 {
    font-size: 1.8rem;
    color: var(--c2);
    margin-bottom: 20px;
}

.about-us-image {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.mission-vision {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.mission-vision-item {
    padding: 25px;
    border-left: 4px solid var(--c1);
    background-color: #f9f9f9;
}

.mission-vision-item h4 {
    font-size: 1.3rem;
    color: var(--c2);
    margin-bottom: 10px;
}

/* --- INDUSTRIAS SECTION (SWIPER) - RECONSTRUIDO --- */
#industrias {
    padding-bottom: 80px;
}

.industries-slider {
    position: relative;
}

.industries-slider .swiper {
    width: 100%;
    padding-bottom: 60px; /* Espacio para la paginación */
}

.industries-slider .swiper-slide {
    width: 280px; /* ANCHO AJUSTADO */
    height: 420px; /* ALTO AJUSTADO */
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.industries-slider .swiper-slide:hover {
        transform: translateY(-8px);
}

.industries-slider .industry-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.industries-slider .industry-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 30, 60, 0.95), transparent);
    z-index: 2;
}

.industries-slider .industry-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 25px;
    color: var(--white);
    z-index: 3;
    width: 100%;
    text-align: center;
}

.industries-slider .industry-card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.industries-slider .industry-card-content p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.industries-slider .swiper-pagination {
    bottom: 20px; 
}

.industries-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: var(--gray);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.industries-slider .swiper-pagination-bullet-active {
    background-color: var(--c1);
    opacity: 1;
    transform: scale(1.2);
}

/* --- INDUSTRY POPUP MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    z-index: 2001;
    width: 90%;
    max-width:900px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
}

.modal-overlay.is-visible .modal-container {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
        transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-header {
    width: 100%;
    height: 250px;
    position: relative;
}

.modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    line-height: 1;
}

.modal-content {
    padding: 30px;
    overflow-y: auto;
}

.modal-content h3 {
    font-size: 1.8rem;
    color: var(--c2);
    margin-bottom: 15px;
}

.modal-content p {
    font-size: 1rem;
    line-height: 1.8;
}

/* --- NUESTRO COMPROMISO SECTION (NUEVO DISEÑO) --- */
#compromiso {
    background-color: var(--light);
}

.commitment-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}
.commitment-card-new{
    width: 300px;
}
.commitment-card-new {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.commitment-card-new:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.commitment-card-new__image-container {
    height: 180px;
    position: relative;
}

.commitment-card-new__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.commitment-card-new__icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: var(--c1); /* <-- CAMBIO DE COLOR */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid var(--white);
}

.commitment-card-new__icon-wrapper i {
    font-size: 2rem;
    color: var(--white);
}

.commitment-card-new__content {
    padding: 50px 25px 30px 25px;
}

.commitment-card-new__content h3 {
    font-size: 1.3rem;
    color: var(--c2);
    margin-bottom: 15px;
    font-weight: 600;
}

.commitment-card-new__content p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- CONTACTO SECTION --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background-color: var(--light);
    padding: 50px;
    border-radius: 10px;
    justify-content: center;
}

.contact-info h3, .contact-form h3 {
    font-size: 1.8rem;
    color: var(--c2);
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 20px;
}

.contact-details li {
    list-style: none;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-details li i {
    color: var(--c1);
    font-size: 1.2rem;
    width: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-primary);
    resize: none;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--c1);
}

.form-group button {
    background-color: var(--c1);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group button:hover {
    background-color: var(--h1);
}

/* --- FOOTER --- */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 50px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    font-weight: 700;
    font-size: 2rem;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 20px;
}

.footer-logo span.bio {
        color: var(--c1);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--c1);
}

.copyright {
    font-size: 0.9rem;
    color: #aaa;
}

/* --- ANIMACIONES DE SCROLL --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === NUEVOS SERVICIOS VISUALES === */
.visual-services-section {
    background: var(--light);
    padding: 80px 0;
}
.visual-services-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}
.visual-services-col {
    flex: 1 1 350px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.visual-service-card {
    position: relative;
    height: 340px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: box-shadow 0.3s;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.visual-service-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.16);
}
.visual-service-img {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(.25,.8,.25,1);
}
.visual-service-card:hover .visual-service-img {
    transform: scale(1.12);
}
.visual-service-title-gradient {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 30px 20px 18px 20px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.449) 50%, rgba(0,0,0,0.0) 100%);
    z-index: 2;
    display: flex;
    align-items: flex-end;
    min-height: 80px;
}
.visual-service-title-gradient span {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.093);
}

/* Modal reutiliza estilos de .modal-overlay y .modal-container */
#service-modal-overlay {
    z-index: 3000;
}
#service-modal-container .modal-header {
    height: 220px;
}
#service-modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#service-modal-title {
    font-size: 1.5rem;
    color: var(--c2);
    margin-bottom: 10px;
}
#service-modal-description {
    font-size: 1rem;
    text-align: justify;
    color: var(--dark);
}



.pp-flex-cont{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 48px;
    align-items: flex-start;
}

.flip-card-container {
display: flex;
justify-content: center;
  align-items: stretch;
  width: 100%;
  overflow: visible;
}

.flip-card {
background-color: transparent;
width: 320px;
height: 500px;
perspective: 1000px;
overflow: visible;
display: flex;
align-items: stretch;
will-change: transform;
contain: layout paint;
cursor: pointer;
}

.flip-card-inner {
position: relative;
width: 100%;
height: 100%;
text-align: center;
transition: transform 1.1s cubic-bezier(.23,1,.32,1);
transform-style: preserve-3d; /* Mantiene la perspectiva 3D de los elementos hijos */
will-change: transform;
overflow: visible;
}

.flip-card:hover .flip-card-inner {
transform: rotateY(180deg); /* Rota la tarjeta al pasar el mouse */
}

.flip-card-front, .flip-card-back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
display: flex;
flex-direction: column;
justify-content: flex-end;
flex-wrap: wrap;
align-items: center;
border-radius: 8px;
box-shadow: 0 4px 16px 0 rgba(0,0,0,0.13);
will-change: transform;
contain: layout paint;
overflow: visible;
}

.flip-card-front {
color: white;
overflow: visible;
}
.pp-h3{
    width: 100%;
    height: 50px;
    padding-bottom: 50px;
    background: linear-gradient(180deg,rgba(255, 255, 255, 0) 0%, rgba(4, 26, 100, 0.596) 90%);
    border-radius: inherit;
    z-index: 5000;
    text-align: center;
}
.flip-card-front:nth-child(1) {
    background-size: cover;
    background-position: center;
}
.pp-flex-cont .flip-card:nth-child(2) .flip-card-front {
    background-size: cover;
    background-position: center;
    /* Otros estilos personalizados */
}
.pp-flex-cont .flip-card:nth-child(3) .flip-card-front {
    background-size: cover;
    background-position: center;
    /* Otros estilos personalizados */
}
.pp-flex-cont .flip-card:nth-child(4) .flip-card-front {
    background-size: cover;
    background-position: center;
    /* Otros estilos personalizados */
}

.flip-card-back {
background-color: var(--c2);
color: white;
transform: rotateY(180deg); /* Inicialmente la parte trasera está volteada */
flex-direction: column;
justify-content: flex-start;
will-change: transform;
}

.flip-card-front img {
max-width: 80%;
max-height: 60%;
object-fit: contain; /* Ajusta la imagen dentro del contenedor */
border-radius: 8px 8px 0 0;
}

.flip-card-front h3, .flip-card-back h3 {
margin: 10px 0;
font-size: 25px;
}

.flip-card-back p {
padding: 10px 20px;
font-size: 1.1em;
}

.flip-card-back a {
display: inline-block;
padding: 8px 15px;
background-color: #fff;
color: #2980b9;
text-decoration: none;
border-radius: 5px;
margin-top: 15px;
}


/* Eliminado: media query innecesaria para .flip-card, ya cubierto por otras reglas */


@media (max-width: 1000px) {
    .about-us-content, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .about-us-image {
        margin-top: 30px;
        grid-row: 1;
    }
        .nav-links {
        position: fixed;
        top: 79px;
        left: -100%;
        width: 100%;
        margin-left: 0;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: left 0.4s ease-in-out;
    }
    
    .trajectory-grid{
        flex-direction: column;
        align-items: center;
    }
.trajectory-item {
    width: 400px;
     padding: 20px 14px;
}
/* Eliminado: ya está unificado arriba con .inactive, .off */

}
.pp-hover:hover{
    color: var(--c1);
    transition: all ease 0.3s;
}
/* Flip cards responsive improvements */
@media (max-width: 1300px) {
  .pp-flex-cont {
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px 24px;
    align-items: flex-start;
    margin-bottom: 48px;
  }
  .flip-card {
    flex: 1 1 340px;
    max-width: 400px;
    min-width: 260px;
    margin: 0 8px 24px 8px;
    height: 500px;
  }
  .flip-card-inner{
    width: 100%;
  }
  .flip-card-front, .flip-card-back {
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.13);
  }
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .hamburger {
    display: block;
  }
          .nav-links {
        position: fixed;
        top: 79px;
        left: -100%;
        width: 100%;
        margin-left: 0;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: left 0.4s ease-in-out;
    }
  .nav-links.active {
    left: 0; /* Visible */
  }
      .nav-links a {
        font-size: 1.5rem;
    }
        .nav-cta { display: none; }
        .nav-links.active {
        left: 0;
    }
}

@media (max-width: 900px) {
  .flip-card {
    width: 50vw;
    max-width: 98vw;
    margin: 0 auto 24px auto;
    height: 450px;
  }
}

@media (max-width: 600px) {
  .flip-card {
    width: 85vw;
    max-width: 98vw;
    height: 450px;
    aspect-ratio: unset;
    margin: 20px auto; /* Espacio arriba y abajo, centrado */
    contain: layout paint;
  }
  .flip-card-front, .flip-card-back {
    box-shadow: 0 1.5px 6px 0 rgba(0,0,0,0.11);
  }
  .pp-flex-cont {
    padding-left: 4px;
    padding-right: 4px;
  }
  .flip-card-front h3, .flip-card-back h3 {
    font-size: 1.1rem;
    margin: 10px 0;
  }
  .flip-card-back p {
    font-size: 0.95em;
    padding: 8px 10px;
  }
}

@media (max-width: 400px) {
  .flip-card {
    height: 400px;
  }
  .flip-card-front h3, .flip-card-back h3 {
    font-size: 0.95rem;
  }
}

@media (max-width: 800px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .mission-vision {
        grid-template-columns: 1fr;
    }
    section {
        padding: 60px 0;
    }
    .footer-links {
        width: 100px;
    }
    .hero-cta{
        font-size: 15px;
        padding: 10px 27px;
    }
    .service-details ul li{
        width: 100%;
    }
    .trajectory-item {
        width: 300px;
    }
    
}
@media (max-width: 500px) {
    .hero-content h1 {
        font-size: 2rem;
    }
        .hero-content p {
        font-size: 0.9rem;
    }
    .section-title h2 {
        font-size: 1.8rem;
    }
    .service-header h3{
        font-size: 1rem;
    }
    .service-header h3 i{
        margin-right: 10px;
    }
    .service-header{
        padding: 15px 10px;
    }
    .service-details ul li{
    width: 300px;
}

@media (max-width: 385px) {
    .service-details ul li{
    width: 250px;
    }
        .hero-content h1 {
        font-size: 1.7rem;
    }
}
}
@media (max-width: 290px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    .trajectory-item{
        width: 220px;
    }
    .flip-card-front h3, .flip-card-back h3{
        font-size: 1.1rem;
    }
}
