@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

/* ==============================
   VARIABLES
============================= */
:root {
    --blue-main: #1f4fd8;
    --blue-soft: #e8efff;
    --dark: #0f172a;
}

/* ==============================
   RESET
============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: #f8fafc;
    color: var(--dark);
}

/* ==============================
   HEADER
============================= */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    padding: clamp(0.5rem, 1.5vw, 1.2rem) clamp(1rem, 5vw, 3rem);
    display: flex;
    justify-content: space-between;
    align-items: center;

    /* --- altura mínima y flexible usando clamp --- */
    min-height: clamp(60px, 8vh, 100px);
}

.header h1[data-headName] {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 1rem);
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 600;
    color: var(--dark);
}

.header h1[data-headName] img {
    height: clamp(40px, 8vw, 60px);
}

.header a {
    color: var(--dark);
    text-decoration: none;
    margin-left: clamp(0.5rem, 2vw, 1.5rem);
    font-weight: 500;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

/* ==============================
   HERO
============================= */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: url("../images/hero-mobile.jpg") center / cover no-repeat;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.75));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 clamp(2rem, 8vw, 6rem);
    max-width: clamp(600px, 80%, 720px);
    color: white;
}

.hero-content h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    line-height: 1.2;
}

.hero-content p {
    margin-top: clamp(1rem, 2vw, 2rem);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    opacity: 0.95;
}

.hero-content button {
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
    width: fit-content;
    padding: clamp(0.6rem, 2vw, 1rem) clamp(1.5rem, 4vw, 3rem);
    background: var(--blue-main);
    color: white;
    border: none;
    border-radius: clamp(0.5rem, 1vw, 0.8rem);
    cursor: pointer;
    transition: background 0.3s;
}

.hero-content button:hover {
    background: #153bb5;
}

/* ==============================
   CARDS
============================= */
.cards {
    padding: clamp(4rem, 10vw, 6rem) clamp(2rem, 8vw, 5rem);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(220px, 25%, 260px), 1fr));
    gap: clamp(1rem, 2vw, 2rem);
    background: white;
}

.card {
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: clamp(0.8rem, 1vw, 1rem);
    background: var(--blue-soft);
    transition: transform 0.4s, box-shadow 0.4s;
}

.card:hover {
    transform: translateY(-clamp(0.5rem, 1vw, 1rem));
    box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.1);
}

/* ==============================
   FOOTER
============================= */
footer {
    padding: clamp(1.5rem, 3vw, 3rem);
    text-align: center;
    background: #020617;
    color: white;
}

/* ==============================
   DROPDOWN HEADER
============================= */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--dark);
    margin-left: clamp(0.5rem, 2vw, 1rem);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    display: flex;
    align-items: center;
    gap: clamp(0.1rem, 1vw, 0.3rem);
    transition: color 0.3s;
}

.dropbtn .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    transform-origin: center center;
}

.dropdown.open .arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: clamp(180px, 25vw, 200px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    border-radius: 0.4rem;
    z-index: 200;
    top: 100%;
    width: 100%;
    left: 0;
}

.dropdown-content a {
    color: var(--dark);
    padding: clamp(0.6rem, 1.5vw, 0.8rem) clamp(0.8rem, 2vw, 1rem);
    text-decoration: none;
    display: block;
    font-weight: 500;
}

.dropdown-content a:hover {
    background-color: var(--blue-soft);
}

.dropdown-content.show {
    display: block;
}

/* ==============================
   BOTON WHATSAPP
============================= */

#btn-whatsapp {
    margin-top: 20px;
    width: fit-content;
    padding: 14px 36px;
    background: #25D366;
    /* verde WhatsApp */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

#btn-whatsapp:hover {
    background: #1ebe57;
    /* verde más oscuro al pasar el mouse */
}

/* ==============================
   ABOUT US HERO
============================= */
.about-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    background: #f8fafc;
    text-align: center;
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 2rem);
}

.about-content {
    max-width: 1000px;
    width: 100%;
    color: var(--dark);
}

.about-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: clamp(1rem, 2vw, 2rem);
}

.about-content p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Tarjetas dentro del hero */
.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(220px, 25%, 260px), 1fr));
    gap: clamp(1rem, 2vw, 2rem);
}

.about-cards .card {
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: clamp(0.8rem, 1vw, 1rem);
    background: var(--blue-soft);
    text-align: center;
    font-weight: 500;
}

.about-cards .card:hover {
    transform: translateY(-clamp(0.5rem, 1vw, 1rem));
    box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.1);
}

/* Boton VER MAS */
.btn-ver-mas {
    background-color: #cbdcff;
    color: var(--dark);
    border: none;
    border-radius: 0.4rem;
    padding: clamp(0.5rem, 1.5vw, 0.8rem) clamp(1rem, 3vw, 1.5rem);
    cursor: pointer;
    font-weight: 100;
    transition: background 0.3s, transform 0.2s;
}

.btn-ver-mas:hover {
    background-color: #a8c1ff;
    transform: translateY(-0.2rem);
}

/* ==============================
   CERTIFICADOS
============================= */
.cert-section {
    display: none;
    padding: clamp(2rem, 5vw, 4rem);
    gap: clamp(2rem, 4vw, 3rem);
    flex-wrap: wrap;
}

.cert-section.active {
    display: flex;
}

.cert-left {
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 2vw, 1rem);
    flex: 1;
    max-width: clamp(150px, 20%, 200px);
}

.cert-left img {
    width: 100%;
    border-radius: 0.5rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.3s, border 0.3s;
}

.cert-left img.active {
    filter: brightness(0.9);
    box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.25);
    transform: scale(1.2);
}

.cert-right {
    flex: 3;
    padding: clamp(0.5rem, 2vw, 1rem);
}

.cert-info {
    display: none;
}

.cert-info.active {
    display: block;
}

/* ==============================
   GALERÍA CERTIFICADOS
============================= */
.info-gallery {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 2rem);
}

.gallery-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(60px, 8vw, 110px), 1fr));
    gap: clamp(0.5rem, 1vw, 1rem);
}

.gallery-row img {
    width: clamp(60px, 12vw, 150px);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-row img:hover {
    transform: scale(1.08);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.15);
}

/* ==============================
   FOOTER BUTTONS
============================== */
.footer-buttons {
    margin-top: clamp(1rem, 3vw, 2rem);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(0.8rem, 3vw, 1.5rem);
}

.footer-btn {
    width: clamp(42px, 8vw, 52px);
    height: clamp(42px, 8vw, 52px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0f172a;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s;
}

.footer-btn img {
    width: 55%;
    height: 55%;
    object-fit: contain;
}

/* Colores por red */
.footer-btn.linkedin {
    background: #0A66C2;
}

.footer-btn.whatsapp {
    background: #25D366;
}

.footer-btn.email {
    background: #334155;
}

/* Hover */
.footer-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0.8rem 1.5rem rgba(0, 0, 0, 0.25);
}



/* ==============================
   PAGINA SERVICIOS
============================== */


/* HERO BASE */
.service-hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* VIDEO */
.bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* OVERLAY GENERAL */
.overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
}

/* CONTENEDOR */
.service-content {
    width: 100%;
    height: 100%;
    display: flex;
}

/* ALTERNANCIA */
.service-content.left {
    flex-direction: row;
}

.service-content.right {
    flex-direction: row-reverse;
}

/* TARJETA PRINCIPAL (DESCRIPCIÓN) */
.service-card {
    width: 50%;
    height: 100%;
    padding: 4rem;
    background: rgba(28, 30, 34, 0.85);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-content.right .service-card {
    border-right: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

/* TEXTO TARJETA */
.service-card h2 {
    font-size: 2.6rem;
    margin-bottom: 1.5rem;
    color: #e5e7eb;
    font-weight: 600;
}

.service-card p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #9ca3af;
    max-width: 520px;
}

/* PANEL DERECHO (EJEMPLOS) */
.service-examples {
    width: 50%;
    height: 100%;
    background: #0b0f1a;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* TITULO EJEMPLOS */
.service-examples h3 {
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: #3fa9f5;
}

/* LISTA */
.service-examples ul {
    list-style: none;
    max-width: 620px;
}

.service-examples li {
  position: relative;
  padding: 1rem 0 1rem 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #e5e7eb;
  border-bottom: 1px solid rgba(111, 168, 220, 0.15);
  word-break: break-word;
}

.service-examples li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 1.15rem;
  color: #6fa8dc;
}


/* @media (max-width: 768px) {
    .service-content {
        flex-direction: column;
    }

    .service-card,
    .service-examples {
        width: 100%;
        height: auto;
    }

    .service-card {
        border: none;
    }
} */



.vertical-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.vertical-nav .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.vertical-nav .dot:hover {
    background: #4fc3ff;
    transform: scale(1.2);
}

.vertical-nav .dot.active {
    background: #4fc3ff;
    box-shadow: 0 0 0 6px rgba(79, 195, 255, 0.25);
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}



/* ==============================
   MOBILE OPTIMIZATION FOR HEADER (VERTICAL PHONES)
============================= */
/* ==============================
   MOBILE OPTIMIZATION FOR HEADER (VERTICAL PHONES)
============================= */
@media (max-width: 1024px) {
    .header {
        min-height: clamp(100px, 12vh, 200px);
        padding: clamp(0.3rem, 5vw, 1.5rem) clamp(1rem, 5vw, 2rem);
        justify-content: space-between;
    }

    .header h1[data-headName] {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }

    .header h1[data-headName] img {
        height: clamp(50px, 8vw, 250px);
    }

    .header a {
        font-size: clamp(1.2rem, 4vw, 2rem);
        margin-left: 0.5rem;
    }

    .dropdown-content {
        min-width: clamp(80px, 40vw, 200px);
    }

    .dropdown-content a {
        padding: clamp(0.6rem, 1.5vw, 0.8rem) clamp(0.8rem, 2vw, 1rem);
        font-size: clamp(1.4rem, 2vw, 2rem);
    }

    .hero-content h2 {
        font-size: clamp(2rem, 7vw, 4rem);
    }

    .hero-content p {
        margin-top: clamp(3rem, 2vw, 5rem);
        font-size: clamp(2rem, 2vw, 3rem);
    }

    .hero-content button {
        margin-top: clamp(1.5rem, 3vw, 2.5rem);
        padding: clamp(1.5rem, 2vw, 2rem) clamp(4rem, 8vw, 20rem);
        font-size: clamp(1rem, 2vw, 2.5rem);
    }

    #btn-whatsapp {
        margin-top: clamp(1.5rem, 3vw, 2.5rem);
        padding: clamp(1.5rem, 2vw, 2rem) clamp(4rem, 8vw, 20rem);
        font-size: clamp(1rem, 2vw, 2.5rem);
    }

    .about-content h1 {
        font-size: clamp(3rem, 7vw, 8rem);
    }

    .about-content p {
        font-size: clamp(1.5rem, 2.5vw, 4rem);
    }

    .about-cards .card {
        font-size: clamp(1.5rem, 2vw, 4rem);
    }

    .btn-ver-mas {
        font-size: clamp(1.5rem, 2vw, 4rem);

    }

    .btn-ver-mas:hover {
        background-color: #a8c1ff;
        transform: translateY(-0.2rem);
    }

    .gallery-row img {
        width: clamp(60px, 8vw, 150px);
    }

    /* puntos verticales */


    /* .vertical-nav {
        display: none;
    } */

  .vertical-nav {
    position: fixed;
    bottom: 1.8rem;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    top: auto;

    flex-direction: row;
    gap: 1.2rem;

    background: rgba(90, 90, 90, 0.22);
    backdrop-filter: blur(12px);

    padding: 0.9rem 1.5rem;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }

  .vertical-nav .dot {
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.6);
  }

  .vertical-nav .dot.active {
    background: #6fa8dc;
    box-shadow: 0 0 0 6px rgba(111, 168, 220, 0.25);
  }

    /* Pagina servicios */
    .service-card,
    .service-examples {
        padding: 3rem;
    }

    .service-card h2 {
        font-size: 2.2rem;
    }
}