
*{box-sizing:border-box;font-family:Segoe UI,Arial,Helvetica,sans-serif}
body{margin:0;color:#1f2937;background:#f7fafc}
.container{max-width:1000px;margin:0 auto;padding:20px}
.site-header{background:linear-gradient(90deg,#0f172a,#1e3a8a);color:white;padding:28px 0;text-align:center}
.site-header h1{margin:0;font-size:22px}
.subtitle{opacity:0.9;margin-top:6px}
h2{color:#0f172a;margin-top:28px}
.services-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px;margin-top:12px}
article{background:white;padding:16px;border-radius:8px;box-shadow:0 1px 4px rgba(2,6,23,0.06)}
ul{padding-left:18px}
footer.site-footer{margin-top:32px;padding:16px;text-align:center;color:#475569;font-size:14px}
form{background:#ffffff;padding:16px;border-radius:8px;box-shadow:0 1px 4px rgba(2,6,23,0.06);margin-top:12px}
form label{display:block;margin-top:10px;color:#334155}
form input, form textarea{width:100%;padding:10px;margin-top:6px;border:1px solid #e2e8f0;border-radius:6px}
form button{margin-top:12px;background:#1e3a8a;color:white;border:none;padding:10px 14px;border-radius:6px;cursor:pointer}
.result{margin-top:10px;color:#065f46;font-weight:600}
@media(max-width:600px){.container{padding:12px}.site-header h1{font-size:18px}}

/* Reveal animation styles */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease-out, transform 600ms ease-out; will-change: opacity, transform; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 80ms; }
.reveal.delay-2 { transition-delay: 160ms; }
.reveal.delay-3 { transition-delay: 240ms; }

/* CTA */
.cta { text-align: center; margin-top: 16px; }
.cta-button { background-color: #1e3a8a; color: white; padding: 12px 25px; border-radius: 8px; text-decoration: none; font-weight: bold; transition: background 0.3s; }
.cta-button:hover { background-color: #17407a; }


/* ==============================
   ESTILOS GENERALES
============================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f6fa;
    color: #2f3640;
    line-height: 1.6;
    overflow-x: hidden;
}

.titulo{
    color: white;
}

h2, h3 {
    color: #1e3799;
}

/* ==============================
   ENCABEZADO
============================== */
.header {
    background: linear-gradient(135deg, #1e3799, #4a69bd);
    color: white;
    text-align: center;
    padding: 80px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px; /* controla el espacio entre logo y texto */
}
.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ==============================
   NAVBAR
============================== */
.navbar {
    background-color: #1e3799;
    color: white;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background-color 0.5s ease;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-logo {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
}

/* ===== MENU PRINCIPAL ===== */
.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
    transition: all 0.4s ease-in-out;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

/* Subrayado animado al pasar el mouse */
.nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #74b9ff;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: #dcdde1;
}

/* ===== DESPLEGABLE ===== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #273c75;
    display: flex;
    flex-direction: column;
    min-width: 230px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.4s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu li {
    padding: 10px 15px;
    transition: background-color 0.3s ease;
}

.dropdown-menu li:hover {
    background-color: #40739e;
}

.dropdown-link {
    color: white;
    text-decoration: none;
    display: block;
}
/* Quitar viñetas del menú desplegable */
.dropdown-menu {
    list-style: none; /* 🚫 elimina los puntos */
    padding-left: 0;  /* elimina el margen interno */
    margin: 0;        /* elimina el margen externo */
}

/* ===== EFECTO DE NAVBAR AL HACER SCROLL ===== */
.navbar.scrolled {
    background-color: rgba(30, 55, 153, 0.8); /* Azul translúcido */
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.5s ease;

    /* Efecto de compactación */
    padding: 8px 0;
}

.navbar.scrolled .nav-container {
    padding: 8px 20px;
    transition: all 0.5s ease;
}

.navbar.scrolled .nav-logo {
    font-size: 1.1rem;
    transition: all 0.5s ease;
}
.navbar.scrolled .nav-link {
    font-size: 0.95rem;
    transition: all 0.3s ease;
}


/* ===== MODO MÓVIL ===== */
.nav-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav-toggle:hover {
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #1e3799;
        flex-direction: column;
        align-items: center;
        display: none;
        padding: 15px 0;
        gap: 15px;
        transition: all 0.5s ease;
    }

    .nav-menu.active {
        display: flex;
        animation: fadeIn 0.5s ease forwards;
    }

    .dropdown:hover .dropdown-menu {
        position: static;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }
}

/* ===== ANIMACIÓN SUAVE ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ===== MODO MÓVIL ===== */
.nav-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    color: white;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #1e3799;
        flex-direction: column;
        align-items: center;
        display: none;
        padding: 15px 0;
        gap: 15px;
    }

    .nav-menu.active {
        display: flex;
    }

    .dropdown:hover .dropdown-menu {
        position: static;
        display: flex;
    }
}

/* ===== SECCIÓN INTRO ===== */
.reveal.intro {
    background-image: url('img/fondo-dashboard.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: white;
    text-align: center;
    padding: 100px 20px;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Capa de desenfoque y oscurecimiento para mejorar legibilidad */
.reveal.intro::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    z-index: 0;
}

/* Asegura que el texto quede por encima del fondo */
.reveal.intro * {
    position: relative;
    z-index: 1;
}

/* ==============================
   SECCIONES
============================== */
section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    position: relative;
}

section h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: #1e3799;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ==============================
   TARJETAS DE SERVICIO
============================== */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.service-card h3 {
    color: #1e3799;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 1rem;
}

/* ==============================
   SECCIÓN "POR QUÉ ELEGIRME"
============================== */
.why-me {
    background: #ffffff;
    border-radius: 12px;
    padding: 50px 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.why-me ul {
    margin: 20px 0;
    list-style-type: "✓ ";
    padding-left: 20px;
}

.why-me li {
    margin-bottom: 10px;
    color: #333;
}

.why-me .closing {
    text-align: center;
    font-weight: 500;
    margin-top: 25px;
    color: #273c75;
}

/* ==============================
   CTA FINAL
============================== */
.cta {
    text-align: center;
    margin-top: 30px;
}

.cta-button {
    background-color: #1e3799;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.cta-button:hover {
    background-color: #4a69bd;
}

/* ==============================
   FORMULARIO DE CONTACTO
============================== */
.contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.contact label {
    font-weight: 600;
    color: #273c75;
}

.contact input,
.contact textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border 0.3s;
}

.contact input:focus,
.contact textarea:focus {
    border-color: #1e3799;
    outline: none;
}

.contact button {
    background: #1e3799;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.contact button:hover {
    background: #4a69bd;
}

/* ==============================
   PIE DE PÁGINA
============================== */
footer {
    background: #1e3799;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    margin-top: 40px;
}

/* ==============================
   BOTONES
============================== */
.btn-ver-mas {
    display: inline-block;
    margin-top: 15px;
    background-color: #1e3799;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.btn-ver-mas:hover {
    background-color: #4a69bd;
    transform: translateY(-2px);
}


/* ==============================
   EFECTO REVEAL (SCROLL ANIMATION)
============================== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }

    section {
        padding: 40px 15px;
    }

    .service-card {
        padding: 20px;
    }
}

/* ==============================
   PÁGINAS SERVICIOS
============================== */
.service-detail {
    background: #ffffff;
    border-radius: 12px;
    padding: 50px 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 60px auto;
}

.service-detail h2, .service-detail h3 {
    color: #1e3799;
    margin-bottom: 15px;
}

.service-detail ul {
    margin: 15px 0 25px 20px;
    list-style-type: "✓ ";
    line-height: 1.8;
}

.service-detail p {
    margin-bottom: 20px;
    text-align: justify;
}

/* ===== BOTÓN FLOTANTE DE WHATSAPP ===== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

.whatsapp-icon {
    width: 30px;
    height: 30px;
    fill: #fff;
}
@keyframes whatsapp-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(37,211,102,0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 15px rgba(37,211,102,0.5); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(37,211,102,0.7); }
}

.whatsapp-float {
  animation: whatsapp-pulse 2.5s ease-in-out infinite;
  animation-delay: 10s;
}

/* ====== SECCIÓN PRINCIPAL ====== */
#data-portfolio {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #0b1320;
  background: #f7f8fa;
  padding: 48px 16px;
}

#data-portfolio .container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ====== ENCABEZADO ====== */
#data-portfolio .header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

#data-portfolio h2 {
  font-size: 26px;
  font-weight: 600;
  color: #0b1f3b;
  margin: 0;
}

#data-portfolio p {
  color: #425067;
  margin-top: 6px;
  max-width: 720px;
}

/* ====== BOTONES ====== */
#data-portfolio a,
#data-portfolio button {
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

#data-portfolio a.primary,
#data-portfolio button.primary {
  background: #0b1f3b;
  color: #fff;
  border: none;
}

#data-portfolio a.primary:hover,
#data-portfolio button.primary:hover {
  background: #1d2f5c;
}

#data-portfolio a.secondary,
#data-portfolio button.secondary {
  border: 1px solid rgba(11, 31, 59, 0.1);
  background: transparent;
  color: #0b1f3b;
}

#data-portfolio a.secondary:hover,
#data-portfolio button.secondary:hover {
  background: #eef1f6;
}

/* ====== GRID PRINCIPAL (PDF + LOOKER) ====== */
#data-portfolio .grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 20px;
}

/* ====== TARJETAS ====== */
#data-portfolio article {
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(10, 20, 40, 0.04);
  display: flex;
  flex-direction: column;
}

#data-portfolio article hr {
  border: none;
  height: 1px;
  background: #eef1f6;
  margin: 14px 0 16px;
}

/* ====== ENCABEZADO DE CADA TARJETA ====== */
#data-portfolio .card-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

#data-portfolio .icon {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}

#data-portfolio .icon.pdf {
  background: linear-gradient(180deg, #0b1f3b, #2b5aa6);
}

#data-portfolio .icon.looker {
  background: linear-gradient(180deg, #2b5aa6, #0b1f3b);
}

/* ====== IFRAME (Looker y PDF Preview) ====== */
#data-portfolio iframe {
  width: 100%;
  height: 360px;
  border: 1px solid #eef1f6;
  border-radius: 8px;
}

/* ====== CONTENEDOR RESPONSIVO DE IFRAME ====== */
#data-portfolio .iframe-container {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #fafbfd;
}

#data-portfolio .iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ====== VISTA PREVIA PDF ====== */
#data-portfolio .preview {
  margin-top: 14px;
  display: none;
}

#data-portfolio .preview iframe {
  height: 360px;
}

/* ====== BOTONES DENTRO DE TARJETAS ====== */
#data-portfolio .buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 992px) {
  #data-portfolio .grid {
    grid-template-columns: 1fr;
  }

  #data-portfolio .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  #data-portfolio h2 {
    font-size: 22px;
  }

  #data-portfolio iframe {
    min-height: 300px;
  }
}

@media (max-width: 600px) {
  #data-portfolio {
    padding: 32px 12px;
  }

  #data-portfolio h2 {
    font-size: 20px;
  }

  #data-portfolio p {
    font-size: 14px;
  }

  #data-portfolio a,
  #data-portfolio button {
    width: 100%;
    text-align: center;
  }

  #data-portfolio .icon {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }

  #data-portfolio iframe {
    min-height: 260px;
  }
}



