:root {
    --primary: #00d2ff;
    --primary-dark: #0072ff;
    --secondary: #00ff87;
    --text: #333;
    --white: #fff;
    --gradient-blue: linear-gradient(135deg, #00d2ff, #0072ff);
    --gradient-green: linear-gradient(135deg, #00ff87, #00b09b);
}

* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: 'Open Sans', sans-serif; background: #fdfdfd; color: var(--text); overflow-x: hidden; }
h1,h2,h3,h4 { font-family: 'Poppins', sans-serif; font-weight: 800; }

.social-sidebar { position: fixed; right:0; top:50%; transform:translateY(-50%); z-index:1000; display:flex; flex-direction:column; }
.social-link { width:50px; height:50px; display:flex; align-items:center; justify-content:center; color:white; font-size:1.2rem; transition:0.3s; }
.social-link:hover { width:70px; }
.facebook { background:#3b5998; } .instagram { background:#E1306C; } .youtube { background:#FF0000; } .whatsapp { background:#25D366; }

nav { position:fixed; width:100%; padding:15px 5%; display:flex; justify-content:space-between; align-items:center; z-index:900; background:rgba(255,255,255,0.95); box-shadow:0 2px 10px rgba(0,0,0,0.1); transition: 0.3s; }
.logo-link { display: flex; align-items: center; }
.main-logo { height: 40px; width: auto; transition: 0.3s ease; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1)); }
nav.sticky .main-logo { height: 35px; }

.nav-links { display:flex; gap:20px; list-style:none; }
.nav-links a { text-decoration:none; color:#333; font-weight:600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary-dark); }
.btn-nav { background:var(--gradient-blue); color:white !important; padding:8px 25px; border-radius:50px; transition: 0.3s; }
.btn-nav:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(0, 114, 255, 0.3); }

.menu-toggle { display: none; font-size: 1.8rem; color: #333; cursor: pointer; }

.hero-slider { height:90vh; position:relative; }
.swiper-slide { background-size:cover; background-position:center; display:flex; align-items:center; justify-content:center; text-align:center; padding: 0 20px; }
.overlay-modern { position:absolute; inset:0; background:linear-gradient(to right, rgba(0,50,150,0.6), rgba(0,200,255,0.3)); }
.slide-content { position:relative; z-index:2; color:white; width: 100%; max-width: 900px; }
.slide-content h1 { font-size:4rem; margin:20px 0; text-shadow:0 5px 15px rgba(0,0,0,0.3); line-height: 1.1; }
.highlight { color:var(--secondary); }
.badge-modern { background:var(--secondary); color:#005c28; padding:5px 15px; border-radius:20px; font-weight:bold; text-transform: uppercase; font-size: 0.8rem; }
.custom-shape-divider-bottom { position:absolute; bottom:0; width:100%; z-index:5; line-height: 0; }
.shape-fill { fill:#fdfdfd; }

.adn-section { padding:80px 5%; text-align:center; }
.adn-header h2 { font-size: 2.5rem; margin-bottom: 10px; }
.adn-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:30px; margin-top:40px; }
.adn-card { background:#f4f9ff; padding:30px; border-radius:20px; border:1px solid #eef; transition:0.3s; }
.adn-card:hover { transform:translateY(-10px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.highlight-card { background:var(--gradient-blue); color:white; }
.highlight-card .adn-icon { background:rgba(255,255,255,0.2); color:white; }
.adn-icon { width:70px; height:70px; background:#e0f2ff; color:var(--primary-dark); border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 20px; font-size:1.8rem; }

/* ---------------------------------------------------
   ESTILOS UNIFICADOS: SERVICIOS Y EQUIPOS 
--------------------------------------------------- */
.services-section, .equipos-section { padding:80px 5%; }
.services-section { background:#f0f8ff; }
.equipos-section { background:white; }

.section-head { text-align:center; margin-bottom:50px; }
.underline { width:70px; height:5px; background:var(--gradient-green); margin:10px auto; border-radius:5px; }
.equipos-section h2 { text-align:center; }

/* Layout Grid idéntico para ambos */
.services-wrapper, .equipos-grid { 
    display:grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap:40px; 
    justify-items: center; 
}

/* Tarjetas base con el mismo tamaño y comportamiento */
.service-box, .equip-card { 
    background:white; 
    width:100%; 
    max-width:350px; /* Ancho estandarizado para que no se vean excesivamente largas */
    border-radius:15px; 
    overflow:hidden; 
    box-shadow:0 8px 25px rgba(0,0,0,0.06); 
    transition:0.3s ease; 
    position:relative; 
    display: flex;
    flex-direction: column;
}
.service-box { cursor:pointer; }
.equip-card { border:1px solid #eaeaea; }

.service-box:hover, .equip-card:hover { 
    transform:scale(1.03); 
    box-shadow:0 15px 35px rgba(0,0,0,0.12); 
    z-index: 10; 
}

/* Imágenes de las tarjetas: Más altas e idénticas en ambas secciones */
.img-box img, .equip-card img { 
    width:100%; 
    height:260px; /* Se aumentó la altura */
    object-fit:cover; 
    display: block;
}

/* Cajas de texto dentro de las tarjetas */
.txt-box { padding: 35px 25px 25px; text-align:center; flex-grow: 1; }
.equip-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }

/* Icono superpuesto (Solo Servicios) */
.icon-serv { 
    position:absolute; 
    top:230px; /* Ajustado por la nueva altura de la imagen */
    left:50%; 
    transform:translateX(-50%); 
    background:var(--primary); 
    color:white; 
    width:60px; 
    height:60px; 
    border-radius:50%; 
    display:flex; 
    align-items:center; 
    justify-content:center; 
    font-size:1.5rem; 
    border:4px solid white; 
}

/* Tipografía de tarjetas adaptada al nuevo tamaño */
.txt-box h3, .equip-content h4 { 
    color:var(--primary-dark); 
    font-size: 1.25rem; 
    margin-bottom: 10px; 
    line-height: 1.3; 
}
.txt-box p { 
    color: #555; 
    font-size: 0.95rem; 
    line-height: 1.5; 
}
.equip-content ul { 
    padding-left:20px; 
    font-size:0.95rem; 
    color:#555; 
    line-height:1.7; 
}
.click-info { display:block; margin-top:15px; color:var(--primary-dark); font-size:0.9rem; font-weight:bold; }

/* BANNER DE EXPERIENCIA */
.water-break { 
    background:url('https://images.unsplash.com/photo-1574786358485-a7b53995874c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') fixed center; 
    background-size: cover;
    padding: 50px 5%; 
    text-align: center; 
}
.water-content { 
    background:rgba(255,255,255,0.9); 
    display:inline-block; 
    padding: 20px 40px; 
    border-radius:10px; 
}
.water-content h2 { 
    color:var(--primary-dark); 
    margin:0; 
    font-size: 3rem; 
    font-weight: 900;
}

/* RECURSOS TÉCNICOS */
.recursos-section { background: #182020; color: #fff; padding: 100px 5%; }
.recursos-layout { display: flex; flex-wrap: wrap; gap: 50px; align-items: flex-start; }
.recursos-info { flex: 1; min-width: 300px; }
.recursos-badge { color: #8a9696; font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; display: block; }
.recursos-info h2 { font-size: 2.8rem; margin-bottom: 20px; color: #e9e4df; font-family: 'Poppins', sans-serif; }
.recursos-info p { color: #8a9696; font-size: 1.1rem; line-height: 1.6; margin-bottom: 30px; }
.btn-recursos { display: inline-block; padding: 12px 25px; border: 1px solid #d16b54; color: #d16b54; border-radius: 30px; text-decoration: none; font-weight: 600; transition: 0.3s; background: transparent; }
.btn-recursos:hover { background: #d16b54; color: #fff; }

.recursos-lista { flex: 1; min-width: 350px; display: flex; flex-direction: column; gap: 15px; }
.recurso-item { background: #1f2727; border: 1px solid #2d3636; border-radius: 12px; padding: 20px; display: flex; align-items: center; justify-content: space-between; text-decoration: none; color: #fff; transition: 0.3s; }
.recurso-item:hover { border-color: #444f4f; background: #242d2d; transform: translateX(5px); }
.recurso-item-left { display: flex; align-items: center; }
.recurso-icon { background: #273131; width: 50px; height: 50px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #b0baba; margin-right: 20px; }
.recurso-text h3 { font-size: 1.1rem; margin: 0 0 5px 0; color: #e9e4df; }
.recurso-text p { font-size: 0.85rem; margin: 0; color: #8a9696; font-weight: 600; }
.recurso-text span { font-size: 0.75rem; color: #667070; display: block; margin-top: 3px; }
.recurso-download { color: #8a9696; font-size: 1.2rem; transition: 0.3s; }
.recurso-item:hover .recurso-download { color: #fff; }

/* CARRUSEL DE CLIENTES */
.clientes-section { padding: 60px 0; background: #fafafa; overflow: hidden; border-top: 1px solid #eaeaea; }
.clientes-section h2 { text-align: center; color: var(--primary-dark); margin-bottom: 40px; }
.slider-clientes { background: white; box-shadow: 0 0 20px rgba(0,0,0,0.05); padding: 20px 0; }
.slide-track { display: flex; width: calc(250px * 34); animation: scroll 60s linear infinite; align-items: center; }
.slide { width: 250px; display: flex; justify-content: center; align-items: center; }
.slide img { width: 150px; filter: grayscale(100%); opacity: 0.6; transition: 0.4s ease; cursor: pointer; }
.slide img:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.1); }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-250px * 17)); } }

/* FORMULARIO CONTACTO */
.contact-section { padding:80px 5%; background:var(--gradient-blue); }
.contact-layout { display:flex; gap:40px; flex-wrap:wrap; }
.form-wrapper, .map-wrapper { flex:1; background:white; padding:40px; border-radius:20px; width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
input, select, textarea { width:100%; padding:14px; margin-bottom:20px; border: 2px solid #999; border-radius:8px; background:#fafafa; color: #111; font-weight: 600; font-size: 1rem; transition: 0.3s; }
input::placeholder, textarea::placeholder { color: #444; font-weight: 500; }
input:focus, select:focus, textarea:focus { border-color: var(--primary-dark); outline: none; background: #fff; }
.btn-submit { width:100%; background:var(--primary-dark); color:white; padding:16px; border:none; border-radius:8px; font-weight:bold; font-size: 1.1rem; cursor:pointer; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px; }
.btn-submit:hover { background: #0056b3; }
.info-card p { margin-bottom:10px; font-weight: 500; color: #333; } .info-card i { color:var(--primary); margin-right:10px; font-size: 1.2rem; }

footer { background: #1a1a1a; color: #888; text-align: center; padding: 40px 20px; }
footer img { height: 40px; margin-bottom: 15px; } 

.modal-overlay { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.7); z-index:2000; align-items:center; justify-content:center; backdrop-filter:blur(5px); }
.modal-content { background:white; width:90%; max-width:600px; max-height:80vh; overflow-y:auto; border-radius:20px; padding:30px; position:relative; animation:slideUp 0.3s ease; }
.close-modal { position:absolute; top:15px; right:20px; font-size:2rem; cursor:pointer; color:#777; }
.modal-header { display:flex; align-items:center; gap:15px; margin-bottom:20px; color:var(--primary-dark); border-bottom:2px solid #eee; padding-bottom:15px; }
.modal-header i { font-size:2rem; }
.modal-list { list-style:none; }
.modal-list li { padding:10px 0; border-bottom:1px solid #f5f5f5; display:flex; align-items:start; gap:10px; color:#444; }
.modal-list li::before { content:"✔"; color:var(--secondary); font-weight:bold; }

@keyframes slideUp { from { transform:translateY(50px); opacity:0; } to { transform:translateY(0); opacity:1; } }

@media(max-width: 900px) { 
    .menu-toggle { display: block; }
    .nav-links { position: absolute; top: 70px; left: 0; width: 100%; background: white; flex-direction: column; align-items: center; padding: 40px 0; gap: 25px; clip-path: circle(0px at 100% 0px); transition: 0.5s ease-in-out; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
    .nav-links.active { clip-path: circle(150% at 100% 0px); } 
    .slide-content h1 { font-size: 2.2rem; }
    .slide-content p { font-size: 1rem; padding: 0 10px; }
    .adn-header h2, .section-head h2 { font-size: 2rem; }
    
    .water-content h2 { font-size: 2rem; }
    .water-break { padding: 30px 5%; }

    .services-wrapper, .equipos-grid { grid-template-columns: 1fr; }
    .contact-layout { flex-direction: column; }
    .form-wrapper, .map-wrapper { width: 100%; padding: 25px; }
    .social-sidebar { display: none; } 
    .main-logo { height: 35px; }
}