/* ================= LOGO ================= */
.logo {
  width: 100%;
  max-width: 300px; /* tamaño máximo */
  height: auto;
}



/* ================= ESTILO GENERAL ================= */
body{
  margin:0;
  font-family:Arial, sans-serif;
  background:#f4f8ff;
  color:#0a2540;
  line-height:1.6;
}


/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0b3d91;
  --primary-dark: #072c68;
  --secondary: #1e88e5;
  --light-blue: #f4f8fd;
  --white: #ffffff;
  --text: #1f2937;
  --gray: #6b7280;
  --border: #dbe4f0;
  --shadow: 0 10px 30px rgba(11, 61, 145, 0.08);
  --radius: 14px;
  --transition: all 0.3s ease;
}

body {
  font-family: Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

/* CONTENEDOR */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ===============================
   HEADER
================================= */

.header {
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5%;
}

.logo {
  height: 60px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
}

.nav a:hover {
  color: var(--secondary);
}

/* BOTONES HEADER */

.nav-phone {
  padding: 10px 18px;
  border: 2px solid var(--primary);
  border-radius: 50px;
  color: var(--primary);
}

.nav-phone:hover {
  background: var(--primary);
  color: white;
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white !important;
  padding: 12px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(11, 61, 145, 0.15);
}

/* DROPDOWN */

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0;
  background: white;
  min-width: 220px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 12px 0;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
}

.dropdown-menu a:hover {
  background: var(--light-blue);
}
/* ================= HERO ================= */
/*.hero{
  background:linear-gradient(135deg,#1e6ee6,#6fb3ff);
  color:white;
  text-align:center;
  padding:80px 20px;
}*/
.hero{
  background:
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url('img/index.png');
  background-size:cover;
  background-position:center;
  color:white;
  text-align:center;
  padding:80px 20px;
}

.hero h2{
  font-size:32px;
  margin-bottom:10px;
}

#texto-dinamico{
  color:#b6ccf3;
  font-weight:bold;
  text-shadow:0 2px 8px rgba(0,0,0,0.2);
}

.hero-slogan {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: #f5f7fb;
  color: #0b3d91;;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4.5rem;
  margin-bottom: 1.2rem;
}



.hero-slogan span {
  white-space: nowrap;
}


/* botón hero */
.hero-buttons{
  display:flex;
  justify-content:center;
  gap:15px;
  margin-top:20px;
  flex-wrap:wrap;
}

.btn{
  border:2px solid rgb(243, 245, 248);
  color:rgb(255, 255, 255);
  padding:12px 25px;
  border-radius:6px;
  text-decoration:none;
  font-weight:bold;
}

.btn:hover{
  background: rgb(81, 129, 201);
  color:#0b3d91;
}
.btn-outline{
  border:2px solid  rgb(252, 252, 252);
  color:rgb(245, 245, 245);
  padding:12px 25px;
  border-radius:6px;
  text-decoration:none;
  font-weight:bold;
}

.btn-outline:hover{
  background: rgb(103, 161, 248);
  color:#0b3d91;
}

/* ================= SECCIONES ================= */
section{
  padding:60px 20px;
}

.container{
  max-width:1100px;
  margin:auto;
}

/* ================= TARJETAS ================= */
.card{
  background:white;
  padding:30px;
  border-radius:12px;
  box-shadow:0 6px 20px rgba(0,0,0,0.08);
}

/* ================= SOBRE NOSOTROS ================= */

/* Títulos */
.card h1{
  text-align:center;
  margin-bottom:20px;
}

.card h2{
  margin-top:30px;
  display:flex;
  align-items:center;
  gap:10px;
  color:#1e6ee6;
}

/* Iconos */
.card h2 i{
  font-size:18px;
}

/* Texto */
.card p{
  margin-bottom:15px;
}

/* Listas */
.card ul{
  padding-left:20px;
}

.card ul li{
  margin-bottom:10px;
}

/* Grid corporativo */
.why-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:20px;
  margin-top:20px;
}

.why-box{
  background:#f4f8ff;
  padding:25px;
  border-radius:10px;
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
  text-align:center;
  transition:transform 0.3s ease;
}

.why-box:hover{
  transform:translateY(-5px);
}

/* Animación */
.fade-up{
  opacity:0;
  transform:translateY(40px);
  transition:all 0.8s ease;
}

.fade-up.show{
  opacity:1;
  transform:translateY(0);
}
.stats-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:20px;
  margin-top:20px;
}

.stat-box{
  background:#0b3d91;
  color:white;
  text-align:center;
  padding:30px;
  border-radius:10px;
  box-shadow:0 6px 18px rgba(0,0,0,0.1);
}

.stat-box h3{
  font-size:40px;
  margin:0;
}
/* ==================== CONTACTO =============================*/


#contacto {
  background: linear-gradient(135deg, #0a2540, #0f3d73);
  padding: 60px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#contacto .container {
  max-width: 1100px;
  margin: 0 auto;
}

#contacto .card {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.6s ease-in-out;
}

/* Títulos */
#contacto h2 {
  color: #0a2540;
  font-size: 32px;
  margin-bottom: 20px;
  border-left: 5px solid #1e6fd9;
  padding-left: 15px;
}

#contacto h3 {
  color: #0f3d73;
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 22px;
}

/* Texto */
#contacto p {
  color: #444;
  line-height: 1.7;
  margin-bottom: 15px;
  font-size: 16px;
}

/* Datos de contacto */
.contacto-datos {
  background: #f2f7ff;
  border-left: 4px solid #1e6fd9;
  padding: 20px;
  border-radius: 8px;
  margin: 25px 0;
}

.contacto-datos p {
  margin: 8px 0;
  font-weight: 500;
}

.contacto-datos i {
  color: #1e6fd9;
  margin-right: 8px;
}

/* CTA */
.cta-texto {
  background: linear-gradient(90deg, #1e6fd9, #8ec2fd);
  color: #fff;
  padding: 18px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  margin: 25px 0;
  font-size: 18px;
}


.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.contact-form{
  margin:30px 0;
  padding:24px;
  background:#f2f7ff;
  border-left:4px solid #1e6fd9;
  border-radius:8px;
}

.contact-form h3{
  margin-top:0;
}

.form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.contact-form label,
.client-type legend{
  display:block;
  color:#0a2540;
  font-weight:700;
  margin-bottom:12px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="password"],
.contact-form textarea{
  width:100%;
  margin-top:8px;
  padding:12px 14px;
  border:1px solid #dbe4f0;
  border-radius:8px;
  font:inherit;
  color:#1f2937;
  background:#a8c3fc;
}

.contact-form textarea{
  resize:vertical;
  min-height:140px;
}

.client-type{
  border:0;
  padding:0;
  margin:18px 0;
  display:flex;
  flex-wrap:wrap;
  gap:16px;
}

.client-type legend{
  flex-basis:100%;
  margin-bottom:0;
}

.client-type label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0;
  font-weight:600;
}

.privacy-note{
  font-size:14px !important;
}

.form-message{
  padding:12px 14px;
  border-radius:8px;
  margin-bottom:18px;
  font-weight:700;
}

.form-message p{
  margin:0 0 8px 0 !important;
}

.form-message p:last-child{
  margin-bottom:0 !important;
}

.form-message.success{
  background:#e8f7ef;
  color:#0f6b3b;
  border:1px solid #b8e2c9;
}

.form-message.error{
  background:#fff1f1;
  color:#9f1d1d;
  border:1px solid #f0b7b7;
}
#form-btn{
  border:2px solid rgb(8, 104, 248);
  color:rgb(72, 142, 247);
  padding:12px 25px;
  border-radius:6px;
  text-decoration:none;
  font-weight:bold;
}

#form-btn:hover{
  background: rgb(42, 100, 187);
  color:#0b3d91;
}

.admin-page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 20px;
  background:linear-gradient(135deg, #0a2540, #0f3d73);
}

.admin-card{
  width:100%;
  max-width:430px;
  background:#fff;
  border-radius:12px;
  padding:34px;
  box-shadow:0 10px 30px rgba(0,0,0,0.15);
}

.admin-card h1,
.admin-heading h1{
  color:#0a2540;
  margin-bottom:10px;
}

.admin-dashboard{
  padding:50px 0;
}

.admin-heading{
  margin-bottom:28px;
}

.admin-section{
  background:#fff;
  padding:24px;
  border-radius:12px;
  box-shadow:0 6px 20px rgba(0,0,0,0.08);
  margin-bottom:28px;
}

.admin-section h2{
  color:#0f3d73;
  margin-bottom:18px;
}

.table-wrap{
  overflow-x:auto;
}

.admin-table{
  width:100%;
  border-collapse:collapse;
  min-width:760px;
}

.admin-table th,
.admin-table td{
  padding:12px;
  border-bottom:1px solid #dbe4f0;
  text-align:left;
  vertical-align:top;
}

.admin-table th{
  background:#f2f7ff;
  color:#0a2540;
}

.admin-table a{
  color:#1e6fd9;
  font-weight:700;
}

.empty-state{
  color:#444;
  margin:0;
}
.hp-field {
    position: absolute;
    left: -9999px;
}
/* Hover suave para la tarjeta */
#contacto .card:hover {
  transform: translateY(-5px);
  transition: 0.3s ease;
}

/* Animación */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ================= BLOQUES PRO (GRID) ================= */

.info-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:20px;
  margin-top:30px;
}

.info-box{
  background:#f1f6ff;
  opacity:0;
  padding:20px;
  border-radius:10px;
  transform:translateY(30px);
  transition:all 0.8s ease;
}

.info-box.show{
  opacity:1;
  transform:translateY(0);
}

.info-box:hover{
  transform:translateY(-6px);
  box-shadow:0 10px 25px rgba(0,0,0,0.1);
  border:1px solid #d1e0ff;
}

/* Títulos dentro */
.info-box h3{
  margin-bottom:10px;
  color:#0b3d91;
  display:flex;
  align-items:center;
  gap:8px;
}

/* ================= SERVICIOS ================= */
.services{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:20px;

}

.service{
  background:#f1f6ff;
  padding:20px;
  text-align:center;
  transition:0.3s;
    border:1px solid #6fb3ff;
}

.service:hover{
  transform:translateY(-5px);
  box-shadow:0 8px 20px rgba(0,0,0,0.1);
}



/* =========================
   FOOTER 
========================= */

.footer {
  background: #061a3a;
  color: white;
  padding-top: 70px;
}

.footer-grid {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding-bottom: 50px;
}

.footer h3 {
  margin-bottom: 18px;
}

.footer p,
.footer a {
  color: rgba(184, 221, 255, 0.85);
  text-decoration: none;
  margin-bottom: 10px;
  display: block;
}

.footer a:hover {
  color: rgb(90, 140, 248);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.footer-badges span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #8ec2fd;
  background: rgba(36, 113, 201, 0.12);
  border: 1px solid rgba(46, 111, 185, 0.35);
  white-space: nowrap;
}

.footer-main {
  text-align: center;
  padding: 30px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-main p {
  margin-bottom: 20px;
}

.footer-meta {
  padding: 25px 20px;
}

.meta-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  list-style: none;
}

.meta-navigation a {
  font-size: 14px;
}

.footer-copy {
  text-align: center;
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
}

/* BANDERA */

.flag-icon-inline {
  width: 22px;
  vertical-align: middle;
  margin-left: 8px;
  border-radius: 3px;
}

/*banner de cookies*/
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #78a7ff;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
}

#cookie-banner button {
    background: #4c66af;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}
/* =========================
   WHATSAPP
========================= */
.whatsapp{
  position:fixed;
  bottom:20px;
  right:20px;
  background:#25D366;
  color:white;
  text-decoration:none;
  padding:14px 18px;
  border-radius:40px;
  font-weight:bold;
  box-shadow:0 6px 20px rgba(0,0,0,0.2);
  z-index:999;
}

/* =========================
   RESPONSIVE
========================= */
@media(max-width:768px){

  .header-container{
    flex-direction:column;
    align-items:center;
    gap:14px;
  }

  .nav{
    width:100%;
    justify-content:center;
    flex-wrap:wrap;
    gap:15px;
  }

  .nav a{
    font-size:14px;
  }

  .hero h1{
    font-size:32px;
  }

  .hero h2,
  #contacto h2{
    font-size:26px;
  }

  .hero p{
    font-size:18px;
  }

  .hero-slogan span{
    white-space:normal;
  }

  #contacto{
    padding:40px 14px;
  }

  #contacto .card,
  .admin-card,
  .admin-section{
    padding:22px;
  }

  .form-grid{
    grid-template-columns:1fr;
  }

  .footer-main{
    flex-direction:column;
    text-align:center;
  }
}

@media(max-width:480px){
  .logo{
    height:52px;
  }

  .nav-phone,
  .nav-cta,
  .btn,
  .btn-outline{
    width:100%;
    text-align:center;
  }

  .contact-form{
    padding:18px;
  }

  .meta-navigation{
    flex-direction:column;
    align-items:center;
    gap:8px;
  }
}
