/* =============================================
   albertoseo.com — Estilos principales
   ============================================= */

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

:root {
    --primary: #0a2540;
    --accent: #00b894;
    --accent-dark: #00a381;
    --text: #1a1a2e;
    --muted: #5a6a7a;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 24px rgba(10,37,64,0.10);
    --radius: 12px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    font-size: 16px;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* === TIPOGRAFÍA === */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { color: var(--muted); }

/* === LAYOUT === */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

section { padding: 80px 0; }

/* === HEADER / NAV === */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo span { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }

.nav-cta {
    background: var(--accent);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--accent-dark) !important; color: var(--white) !important; }

/* === HERO === */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1a3a5c 100%);
    padding: 100px 0 90px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: rgba(0,184,148,0.08);
    right: -150px; top: -150px;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(0,184,148,0.05);
    left: -80px; bottom: -80px;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,184,148,0.15);
    border: 1px solid rgba(0,184,148,0.3);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 20px;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero-desc {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 40px;
}

.stat strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.stat span {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    display: block;
    margin-top: 4px;
}

/* Hero Form */
.hero-form-wrap {
    background: var(--white);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}

.hero-form-wrap h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.hero-form-wrap > p {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 24px;
}

/* === FORMULARIO === */
.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,184,148,0.12);
    background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 90px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 4px;
}

.btn-submit:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); }

.form-privacy {
    text-align: center;
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 12px;
}

/* === SERVICIOS === */
.servicios { background: var(--bg); }

.section-header {
    text-align: center;
    margin-bottom: 52px;
}

.section-tag {
    display: inline-block;
    background: rgba(0,184,148,0.1);
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.section-header h2 { color: var(--primary); margin-bottom: 12px; }
.section-header p { max-width: 540px; margin: 0 auto; }

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.servicio-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.servicio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.servicio-icon {
    width: 52px; height: 52px;
    background: rgba(0,184,148,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.servicio-card h3 { color: var(--primary); margin-bottom: 10px; }
.servicio-card p { font-size: 0.9rem; line-height: 1.65; }

/* === PROCESO === */
.proceso-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}

.proceso-steps::before {
    content: '';
    position: absolute;
    top: 28px; left: 12.5%; right: 12.5%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step h3 { color: var(--primary); margin-bottom: 8px; }
.step p { font-size: 0.87rem; }

/* === POR QUÉ YO === */
.porqueyo { background: var(--primary); }

.porqueyo h2 { color: var(--white); margin-bottom: 12px; }
.porqueyo .section-header p { color: rgba(255,255,255,0.65); }

.razones-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.razon {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 24px;
}

.razon-icon {
    width: 44px; height: 44px;
    min-width: 44px;
    background: rgba(0,184,148,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.razon h3 { color: var(--white); margin-bottom: 6px; font-size: 1rem; }
.razon p { color: rgba(255,255,255,0.6); font-size: 0.88rem; }

/* === SECTORES === */
.sectores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.sector-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 16px;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--primary);
    transition: all 0.2s;
}

.sector-item:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.sector-item span { display: block; font-size: 1.4rem; margin-bottom: 8px; }

/* === CTA FINAL === */
.cta-final {
    background: linear-gradient(135deg, #00b894 0%, #00a381 100%);
    text-align: center;
}

.cta-final h2 { color: var(--white); margin-bottom: 12px; }
.cta-final p { color: rgba(255,255,255,0.85); max-width: 540px; margin: 0 auto 32px; font-size: 1.05rem; }

.btn-cta {
    display: inline-block;
    background: var(--white);
    color: var(--accent-dark);
    padding: 16px 40px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* === FOOTER === */
footer {
    background: #070e1a;
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding: 32px 24px;
    font-size: 0.85rem;
}

footer a { color: rgba(255,255,255,0.5); }
footer a:hover { color: var(--accent); }

/* === ALERTAS === */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.88rem;
    font-weight: 500;
}

.alert-error { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-form-wrap { max-width: 520px; margin: 0 auto; }
    .servicios-grid { grid-template-columns: 1fr 1fr; }
    .proceso-steps { grid-template-columns: 1fr 1fr; }
    .proceso-steps::before { display: none; }
    .razones-grid { grid-template-columns: 1fr; }
    .sectores-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    section { padding: 56px 0; }
    .nav-links { display: none; }
    .servicios-grid { grid-template-columns: 1fr; }
    .proceso-steps { grid-template-columns: 1fr; }
    .sectores-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .hero-stats { gap: 20px; }
}
