 /* ---------- RESETEO GENERAL ---------- */
* {
    margin: 0; /* Elimina márgenes predeterminados */
    padding: 0; /* Elimina rellenos predeterminados */
    box-sizing: border-box; /* Incluye el borde y padding dentro del ancho total */
}

/* ---------- ESTILOS GENERALES DEL CUERPO ---------- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Fuente base */
    line-height: 1.6; /* Espaciado entre líneas */
    color: #333; /* Color de texto general */
    overflow-x: hidden; /* Evita el desplazamiento horizontal */
}

/* ---------- ENCABEZADO FIJO ---------- */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); /* Degradado azul */
    color: white; /* Texto blanco */
    padding: 1rem 0;
    position: fixed; /* Se mantiene arriba al hacer scroll */
    width: 100%;
    top: 0;
    z-index: 1000; /* Se superpone sobre otros elementos */
    box-shadow: 0 2px 10px rgba(0,0,0,0.3); /* Sombra inferior */
}

/* ---------- MENÚ DE NAVEGACIÓN ---------- */
nav {
    display: flex; /* Alinea elementos en fila */
    justify-content: space-between; /* Espaciado entre logo y enlaces */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Logo del sitio */
.logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Espacio entre icono y texto */
}

/* Lista de enlaces de navegación */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none; /* Elimina viñetas */
}

/* Enlaces del menú */
.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s; /* Transición suave al pasar el mouse */
    font-weight: 500;
}

.nav-links a:hover {
    color: #64b5f6; /* Azul claro al pasar el mouse */
}

/* ---------- SECCIÓN PRINCIPAL (HERO) ---------- */
.hero {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.9), rgba(42, 82, 152, 0.9)),
     url('data:image/svg+xml,<svg ... </svg>'); /* Imagen + degradado superpuesto */
    background-size: cover;
    background-position: center;
    height: 100vh; /* Ocupa toda la altura visible */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 2rem;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out; /* Animación al aparecer */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Botón de llamada a la acción */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #ff6b6b; /* Rojo coral */
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.cta-button:hover {
    background: #ff5252; /* Más intenso al pasar el mouse */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

/* ---------- SECCIONES GENERALES ---------- */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3c72;
}

/* ---------- SECCIÓN DE SERVICIOS ---------- */
.services {
    background: #f8f9fa; /* Fondo gris claro */
}

/* Contenedor de tarjetas */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Diseño adaptable */
    gap: 2rem;
}

/* Tarjetas individuales */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Icono circular en cada tarjeta */
.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e3c72;
}

/* ---------- SECCIÓN DE PRECIOS ---------- */
.pricing {
    background: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Tarjetas de precios */
.pricing-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    border: 2px solid #e0e0e0;
    text-align: center;
    transition: all 0.3s;
}

.pricing-card:hover {
    border-color: #2a5298;
    box-shadow: 0 10px 30px rgba(42, 82, 152, 0.2);
    transform: scale(1.05);
}

/* Tarjeta destacada */
.pricing-card.featured {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    border: none;
    transform: scale(1.05);
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: bold;
    margin: 1.5rem 0;
    color: #1e3c72;
}

/* Lista de características */
.features-list {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.features-list li {
    padding: 0.7rem 0;
    border-bottom: 1px solid #eee;
}

.features-list li:before {
    content: "✓ ";
    color: #4caf50;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* ---------- SECCIÓN DE CONTACTO ---------- */
.contact {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px); /* Efecto de cristal */
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ---------- PIE DE PÁGINA ---------- */
footer {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* ---------- ANIMACIONES ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- DISEÑO RESPONSIVO ---------- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem; /* Reduce el tamaño en pantallas pequeñas */
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    h2 {
        font-size: 2rem;
    }
}
