:root {
    --verde-menta: #61e294;
    --azul-verdoso: #4cb8c4;
    --azul-profundo: #3a6df0;
    --fondo-oscuro: #0f172a;
    --gris-claro: #f8fafc;
    --gris-medio: #94a3b8;
    --blanco: #ffffff;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    background-color: var(--gris-claro);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--verde-menta), var(--azul-verdoso));
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--blanco);
    text-decoration: none;
    animation: pulse 2s infinite;
}

.logo-circle {
    width: 40px;
    height: 40px;
    background: var(--blanco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--azul-profundo);
    font-weight: 700;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

nav a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.6)), url('https://placehold.co/1920x800/0f172a/61e294?text=Ciberseguridad') no-repeat center center;
    background-size: cover;
    color: var(--blanco);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(97, 226, 148, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    background: var(--azul-profundo);
    color: var(--blanco);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    margin: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--blanco);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Secciones comunes */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--azul-profundo);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--gris-medio);
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
}

/* Servicios destacados */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background: var(--blanco);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--verde-menta);
}

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

.service-icon {
    font-size: 2.5rem;
    color: var(--azul-profundo);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--azul-profundo);
}

.service-card p {
    color: #64748b;
    margin-bottom: 20px;
}

/* Riesgo */
.risk-section {
    background: linear-gradient(135deg, var(--azul-verdoso), var(--azul-profundo));
    color: var(--blanco);
    text-align: center;
    border-radius: 20px;
    padding: 60px;
    margin: 60px auto;
    max-width: 900px;
}

.risk-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.risk-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Footer */
footer {
    background: var(--fondo-oscuro);
    color: var(--blanco);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--verde-menta);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--gris-medio);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--verde-menta);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gris-medio);
    font-size: 0.9rem;
}

/* Animaciones */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }

    nav ul {
        gap: 15px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

html {
  scroll-behavior: smooth;
}

/* Animación pulsante para botón */
@keyframes pulse-button {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(58, 109, 240, 0.2); }
  100% { transform: scale(1); }
}

.btn.pulsing {
  animation: pulse-button 2.5s infinite;
}

/* Animación fade-in delay */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.2s ease forwards;
}
@keyframes fadeIn {
  to { opacity: 1; }
}


/* Nueva estructura nav centrado */
.split-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.nav-left ul,
.nav-right ul {
    display: flex;
    list-style: none;
    gap: 30px;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.nav-left a,
.nav-right a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.nav-left a:hover,
.nav-right a:hover {
    opacity: 0.8;
}

.logo-centered {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: 50px;
    max-height: 50px;
}
