:root{
    --white:#ffffff;
    --red:#d72638;
    --navy:#001f3f;
    --beige-light:#fdf5e6;
    --text-muted: #666666;
    --poppins: 'Poppins', sans-serif;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: var(--poppins); /* Cambiado Poppins como base corporativa */
}

body{
    background:linear-gradient(180deg,#ffffff,#f7f7f7);
    color:var(--navy);
}

.container{
    width:95%;
    max-width:1400px;
    margin:auto;
}

/* HEADER */
.header{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    z-index:20;
    padding:25px 0;
}

.nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.logo{
    height:120px;
}

nav{
    flex:1;
    margin-left:40px;
}

.menu{
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    list-style:none;
}

.menu a{
    text-decoration:none;
    color:white;
    font-weight:500;
    font-size:15px;
    white-space:nowrap;
    transition:.3s;
}

.menu a:hover{
    color:var(--red);
}

.btn-nav{
    background:var(--red);
    color:white !important;
    padding:10px 25px;
    border-radius:50px;
}

/* --- ESTILOS DEL POP-UP CORPORATIVO (REDiseñado) --- */
.contact-container {
    position: relative;
    display: flex;
    align-items: center;
}

.contact-link-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.arrow-icon {
    font-size: 18px !important;
    transition: transform 0.3s ease;
}

.show-dropdown .arrow-icon {
    transform: rotate(180deg);
}

.contact-pop-corporate {
    display: none; /* OCULTO POR DEFECTO */
    position: absolute;
    top: 100%; /* Justo abajo de Contactanos */
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    width: 320px; /* Un poco más ancho para los iconos */
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    margin-top: 18px;
    z-index: 1000;
    text-align: left;
    overflow: hidden; /* Para la brand-line y el borde redondeado */
}

/* Cuando el Pop está activo (se añade por JS) */
.contact-pop-corporate.active {
    display: block;
    animation: fadeInPop 0.3s ease;
}

@keyframes fadeInPop {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* Flecha profesional hacia arriba */
.contact-pop-corporate::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-bottom-color: var(--red); /* Color de la línea de marca */
}

/* Línea decorativa de marca */
.brand-line {
    height: 6px;
    background: var(--red);
    width: 100%;
}

.pop-content {
    padding: 25px 20px;
}

/* Estilo de los Ítems de Contacto */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    color: var(--navy);
    font-size: 20px !important;
    margin-top: 2px;
}

.item-text {
    flex: 1;
}

.contact-item p.label {
    color: var(--text-muted) !important;
    font-size: 11px !important;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 3px;
    line-height: 1;
}

.info-data {
    color: var(--navy) !important;
    font-size: 14px !important;
    font-weight: 500;
    line-height: 1.5;
}

.info-data .ext {
    font-size: 11px;
    color: var(--text-muted);
}

.info-data.pending {
    font-style: italic;
    color: var(--text-muted) !important;
    font-weight: 400;
}

/* Estilo de los Enlaces Interactivos */
.contact-pop-corporate a {
    color: var(--navy) !important;
    text-decoration: none !important;
    white-space: normal !important;
    font-weight: 500;
    transition: 0.2s ease;
}

.contact-pop-corporate a:hover {
    color: var(--red) !important;
    text-decoration: none !important;
}

.contact-pop-corporate .interactive-link {
    display: inline-block;
    position: relative;
}

.contact-pop-corporate .interactive-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -1px;
    left: 0;
    background-color: var(--red);
    transition: width 0.3s;
}

.contact-pop-corporate .interactive-link:hover::after {
    width: 100%;
}

.separator-dots {
    height: 1px;
    background-image: linear-gradient(to right, #ddd 40%, rgba(255,255,255,0) 0%);
    background-position: bottom;
    background-size: 8px 1px;
    background-repeat: repeat-x;
    margin: 15px 0;
}

/* HERO */
/* HERO SLIDER */
.hero{
    position:relative;
    height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    color:white;
    overflow:hidden;
    text-align:center;
}

/* CONTENEDOR SLIDER */
.hero-slider{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:0;
}

/* IMÁGENES */
.slide{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;

    object-fit:cover; /* 👈 llena TODO el espacio */
    object-position:center; /* 👈 centra bien la imagen */

    opacity:0;
    transform:scale(1); /* inicia normal */
    transition:opacity 1.2s ease-in-out, transform 12s ease;
}

.slide.active{
    opacity:1;
    transform:scale(1.15); /* 👈 zoom IN elegante */
}

/* OVERLAY OSCURO */
.hero::after{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.45);
    z-index:1;
}

.hero-text{
    position:relative;
    z-index:2;
    max-width:800px;
}

.hero h1{
    font-size:55px;
    margin-bottom:-55px;
    line-height: 1.1;
}

.hero p{
    font-size:22px;
    font-weight:500;
    background: rgba(255,255,255,0.1);
    padding:12px 25px;
    border-radius:30px;
    display:inline-block;
    backdrop-filter: blur(8px);
    letter-spacing:.5px;
}

/* SERVICIOS */
.services{
    margin-top:0;          /* quitar margen negativo */
    padding:40px 0 60px 0; /* menos espacio arriba y abajo */
}

.grid-services{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.card{
    background:var(--white);
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    padding:10px; /* 👈 agrega esto */
}
.card img{
    width:100%;
    height:200px;
    object-fit:cover;
    border-radius:10px; /* 👈 evita que toque las esquinas */
}

.card h3{
    margin:15px;
    color:var(--red);
}

.card p{
    margin:0 15px 20px 15px;
}

/* TECNOLOGIA */
.tech{
    padding:140px 0;
}

.tech-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:80px;
    align-items:center;
}

.tech h2{
    font-size:42px;
    color:var(--navy);
    margin-bottom:20px;
    font-weight:700;
}

.tech p{
    font-size:20px;
    color:#4a5568;
    line-height:1.7;
}

.tech img{
    width:90%;
    max-width:420px;
    display:block;
    margin:auto;
}

/* FOOTER */
.footer{
    padding:60px 40px;
    background:var(--white);
    border-top:1px solid #ddd;
}

.footer-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:30px;
}

.footer a{
    display:block;
    margin-bottom:8px;
    color:var(--navy);
    text-decoration:none;
}

.footer-bottom{
    margin-top:40px;
    text-align:center;
    font-size:14px;
    border-top:1px solid #ddd;
    padding-top:20px;
}

.fade-text {
    display: inline-block;
    transition: all 0.8s ease;
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
}

.fade-text.oculto {
    opacity: 0;
    transform: translateY(15px);
    filter: blur(4px);
}

/* CONTACTO CON ICONOS */
.contact-line{
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin-bottom:10px;
}

.icon-red{
    color: var(--red);
    font-size:20px;
    margin-top:2px;
}

/* SECCIÓN CEDIS PROFESIONAL */
.cedis{
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
}

.cedis-container{
    position: relative;
    max-width: 1200px;
    margin: auto;
}

.cedis-img{
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* overlay */
.cedis-container::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: linear-gradient(90deg, rgba(0,0,0,0.6), rgba(0,0,0,0.1));
    z-index: 1;
}

.map-full {
    width: 100%;
    margin-top: 40px;
}

.map-full iframe {
    width: 100%;
    height: 300px;
    border: 0;
}

.imagen-debajo{
    margin-top:0px;
}

.imagen-debajo img{
    width:100%;
    height:675px;
    object-fit:cover;
    border-radius:14px;
    box-shadow:0 10px 25px rgba(0,0,0,0.1);
}

.contact-map-container{
    display:flex;
    gap:20px;
    align-items:flex-start;
}

.contact-info{
    flex:1;
}

.contact-map{
    width:250px;
    height:180px;
    border-radius:10px;
    overflow:hidden;
}

.contact-map iframe{
    width:100%;
    height:100%;
    border:0;
}

/* CONTACTO PRO */
.contact-pro{
    padding:30px 0 60px 0; /* menos espacio arriba */
    margin-top:-130px;
}

.contact-pro-grid{
    display:grid;
    grid-template-columns:1fr 1fr; /* 👈 texto más ancho, mapa más chico */
    gap:0px;
    align-items:center;
}

.contact-pro-info h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 25px;
  margin-top:70px;
  text-align: left;
  border-left: 5px solid var(--red);   /* línea de marca */
  padding-left: 12px;                  /* separación del texto */
}

.contact-pro-info p {
  font-size: 17px;
  color: #444;
  margin-bottom: 18px;
  line-height: 1.6;
}

.contact-details {
  margin-top: 25px;
}

/* ITEMS */
.contact-item-pro {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
}

.contact-item-pro p {
  margin: 0;
  font-size: 15px;
  color: #333;
  font-weight: 500;
}

/* Íconos */
.icon-red {
  color: var(--red);
  font-size: 20px;
  margin-top: 2px;
}

/* Frase corporativa final */
.contact-slogan {
  margin-top: 30px;
  font-size: 16px;
  color: var(--navy);
  font-weight: 600;
  text-align: left;
}

/* MAPA */
.contact-pro-map{
    width:100%;
    max-width: 598px;  /* 👈 límite real */
    height:400px;
    margin-left:auto; /* 👈 lo pega a la derecha */
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,0.1);
    margin-top:80px
}

.contact-pro-map iframe{
    width:100%;
    height:100%;
    border:0;
}

html {
    scroll-behavior: smooth;
}

#contacto {
    scroll-margin-top: 120px;
}



.mapa-interactivo{
    position: relative;
    width: 100%;
}

.mapa-interactivo img{
    width: 100%;
    border-radius: 14px;
    Margin-top:80px
}

/* PUNTOS INVISIBLES */
.punto{
    position: absolute;
    width: 138px;
    height: 120px;
    cursor: pointer;
}

/* UBICACIONES (AJUSTA A TU IMAGEN) */
.iztapalapa{ top: 43%; left: 41%; }
.irapuato{ top: 45%; left: 24%; }
.merida{ top: 35%; left: 86%; }
.villahermosa{ top: 60%; left: 70%; }

/* POPUP */
.popup{
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 200px;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    text-align: center;
}

/* FLECHITA */
.popup::after{
    content:"";
    position:absolute;
    top:100%;
    left:50%;
    transform:translateX(-50%);
    border:8px solid transparent;
    border-top-color:white;
}

/* HOVER */
.punto:hover .popup{
    opacity:1;
    pointer-events:auto;
}