/* ========================================
   ONLINE MARKETING ND - DISEÑO CORPORATIVO
   ======================================== */

:root {
    --primary: #7BA3CC;      /* Azul suave y elegante */
    --secondary: #8B7355;    /* Marrón cálido de lujo */
    --accent: #9B8577;       /* Taupe sofisticado */
    --dark: #3D3429;         /* Marrón oscuro */
    --light: #C7D2DC;        /* Azul-gris apagado, más oscuro que las tarjetas */
    --white: #ffffff;
    --text: #4A4238;         /* Texto marrón oscuro */
    --shadow: rgba(0,0,0,0.1);
    --gradient: linear-gradient(135deg, #5D4A3A 0%, #3D3429 100%);
    --card-bg: #E8F0F7;      /* Azul clarito apagado para tarjetas */
    --proyecto-bg: #D9E2EA;  /* Azul-gris apagado para tarjetas de portafolio */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.6;
}

section[id] {
    scroll-margin-top: 100px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HEADER ========== */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.logo-img {
    height: 46px;
    width: auto;
    display: block;
}

.logo-tagline {
    font-size: 12px;
    font-weight: 600;
    color: #5B6B7D;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 3px;
    white-space: nowrap;
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
    padding: 6px 10px;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
}

nav a:hover {
    color: #2563EB;
}

nav a.active {
    color: #2563EB;
    font-weight: 600;
    border-bottom-color: #2563EB;
}

.btn-header {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #4FC3F7 0%, #1565C0 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(21, 101, 192, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(21, 101, 192, 0.45);
}

/* ========== HERO ========== */
.hero {
    background:
        linear-gradient(rgba(10, 20, 40, 0.55), rgba(10, 20, 40, 0.55)),
        url('images/hero-inicio-bg.jpg');
    background-size: cover;
    background-position: right center;
    color: var(--white);
    padding: 120px 20px;
    text-align: center;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    padding: 16px 45px;
    background: linear-gradient(135deg, #4FC3F7 0%, #1565C0 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    border: none;
    box-shadow: 0 8px 20px rgba(21, 101, 192, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(21, 101, 192, 0.55);
}

/* ========== SERVICIOS ========== */
.servicios {
    padding: 80px 20px;
    background: #152B4A;
}

.servicios h2 {
    text-align: center;
    font-size: 40px;
    color: var(--white);
    margin-bottom: 60px;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.servicio-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: 16px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.servicio-card:hover {
    transform: translateY(-10px);
}

.servicio-card i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--white);
    background: linear-gradient(135deg, #4FC3F7 0%, #1565C0 100%);
    border-radius: 50%;
    margin-bottom: 20px;
}

.servicio-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark);
    text-align: left;
}

.servicio-card p {
    color: var(--text);
    text-align: left;
    font-size: 15px;
    flex-grow: 1;
}

.servicio-tag {
    display: inline-block;
    align-self: center;
    margin-top: 20px;
    padding: 10px 24px;
    background: #00AEEF;
    color: var(--white);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    border-radius: 50px;
    box-shadow: 0 6px 16px rgba(0, 174, 239, 0.4);
}

/* ========== PORTAFOLIO ========== */
.portafolio {
    padding: 80px 20px;
    background: #F7F9FC;
    position: relative;
    overflow: hidden;
}

.portafolio-header {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.portafolio-eyebrow {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.portafolio-header h2 {
    font-size: 40px;
    color: var(--dark);
    margin-bottom: 18px;
}

.portafolio-header h2 .texto-azul {
    color: #2563EB;
}

.portafolio-header h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: #2563EB;
    border-radius: 4px;
    margin: 16px auto 0;
}

.portafolio-subtitulo {
    color: var(--text);
    font-size: 16px;
}

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.proyecto-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.proyecto-card:hover {
    transform: translateY(-10px);
}

.proyecto-card.rosa { --cat-color: #EC4899; --cat-bg-light: #FCE7F3; }
.proyecto-card.ambar { --cat-color: #F5A623; --cat-bg-light: #FEF3C7; }
.proyecto-card.azul { --cat-color: #2563EB; --cat-bg-light: #DBEAFE; }

.proyecto-imagen {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.proyecto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.proyecto-card:hover .proyecto-imagen img {
    transform: scale(1.1);
}

.proyecto-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--cat-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.proyecto-frase {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.proyecto-frase-script {
    font-family: 'Brush Script MT', cursive;
    font-size: 28px;
    font-weight: 400;
}

.proyecto-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.proyecto-titulo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.proyecto-icono {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--cat-bg-light);
    color: var(--cat-color);
    font-size: 18px;
}

.proyecto-info h3 {
    font-size: 20px;
    color: var(--dark);
}

.proyecto-info > p {
    color: var(--text);
    margin-bottom: 18px;
}

.proyecto-check {
    list-style: none;
    margin-bottom: 25px;
}

.proyecto-check li {
    padding: 6px 0;
    color: var(--text);
    font-size: 14px;
}

.proyecto-check li i {
    color: var(--cat-color);
    margin-right: 10px;
}

.btn-proyecto-mente {
    display: block;
    width: fit-content;
    margin: 50px auto 0;
    padding: 14px 32px;
    background: var(--white);
    color: #2563EB;
    text-decoration: none;
    border: 2px solid #2563EB;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
}

.btn-proyecto-mente i {
    margin-left: 8px;
}

.btn-proyecto-mente:hover {
    background: #2563EB;
    color: var(--white);
}

/* ========== PRECIOS ========== */
.precios {
    padding: 80px 20px;
    background: linear-gradient(160deg, #0A1628 0%, #0F2744 100%);
}

.precios h2 {
    text-align: center;
    font-size: 40px;
    color: var(--white);
    margin-bottom: 60px;
}

.precios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.precio-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.precio-card:hover {
    transform: translateY(-10px);
}

.precio-card.destacado {
    border: 1px solid rgba(79, 195, 247, 0.6);
    background: rgba(79, 195, 247, 0.07);
    box-shadow: 0 0 35px rgba(79, 195, 247, 0.2);
}

.badge-popular {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(123, 163, 204, 0.9);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.precio-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--white);
}

.precio {
    margin-bottom: 30px;
}

.precio .cantidad {
    font-size: 48px;
    font-weight: 700;
    color: #4FC3F7;
}

.precio-card ul {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.precio-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
}

.precio-card ul li i {
    color: #10b981;
    margin-right: 10px;
}

.btn-precio {
    display: inline-block;
    padding: 12px 40px;
    background: linear-gradient(135deg, #4FC3F7 0%, #1565C0 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(21, 101, 192, 0.4);
    align-self: center;
    margin-top: auto;
}

.btn-precio:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(123, 163, 204, 0.4);
}

/* ========== CONTACTO ========== */
.contacto {
    padding: 80px 20px;
    background: linear-gradient(160deg, #0A1628 0%, #0F2744 100%);
}

.contacto h2 {
    text-align: center;
    font-size: 40px;
    color: var(--white);
    margin-bottom: 10px;
}

.contacto-subtitulo {
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: 16px;
    margin-bottom: 50px;
}

.contacto-contenido {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    align-items: start;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.contacto-info {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contacto-info:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(30, 168, 83, 0.25);
}

.contacto-info img {
    display: block;
    width: 100%;
    height: auto;
}

.contacto-form {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
}

.contacto-form input,
.contacto-form select,
.contacto-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    transition: border-color 0.3s, background 0.3s;
}

.contacto-form input::placeholder,
.contacto-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.contacto-form select {
    color: rgba(255, 255, 255, 0.85);
}

.contacto-form select option {
    background: #0F2744;
    color: var(--white);
}

.contacto-form input[type="file"] {
    color: rgba(255, 255, 255, 0.7);
}

.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.contacto-form button {
    width: 100%;
    scroll-margin-bottom: 90px;
}

.campo-icono {
    position: relative;
}

.campo-icono i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 15px;
}

.campo-icono input {
    padding-left: 45px;
}

/* ========== FOOTER ========== */
footer {
    background: #0A1428;
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
}

footer p {
    margin: 5px 0;
    opacity: 0.8;
}

.footer-legal-links {
    margin-top: 10px !important;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
}

.footer-legal-links a:hover {
    color: var(--white);
}

/* ========== PÁGINAS LEGALES ========== */
.legal {
    padding: 60px 20px 100px;
    background: var(--white);
}

.legal-content {
    max-width: 800px;
}

.legal-content .volver {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.legal-content .volver:hover {
    text-decoration: underline;
}

.legal-content h1 {
    font-size: 36px;
    color: var(--dark);
    margin-bottom: 8px;
}

.legal-content .fecha-actualizacion {
    color: var(--text);
    opacity: 0.7;
    font-size: 14px;
    margin-bottom: 35px;
}

.legal-content h2 {
    font-size: 21px;
    color: var(--dark);
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-content p,
.legal-content li {
    color: var(--text);
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.7;
}

.legal-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.legal-content a {
    color: var(--primary);
}

/* ========== CONSENTIMIENTO EN FORMULARIOS ========== */
.check-privacidad {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
    cursor: pointer;
}

.check-privacidad input {
    width: auto;
    margin: 2px 0 0 0;
}

.check-privacidad a {
    color: #4FC3F7;
}

/* ========== AVISO DE COOKIES ========== */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0A1628;
    color: var(--white);
    padding: 18px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 2000;
    transform: translateY(110%);
    transition: transform 0.4s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner p {
    margin: 0;
    font-size: 14px;
    max-width: 700px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-banner a {
    color: #4FC3F7;
    text-decoration: underline;
}

.btn-cookie {
    padding: 10px 28px;
    background: linear-gradient(135deg, #4FC3F7 0%, #1565C0 100%);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
}

.cookie-botones {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-cookie-rechazar {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* ========== WHATSAPP ========== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: transform 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ========== SERVICIO CARD LINK ========== */
.servicio-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ========== DETALLE DE SERVICIO (p\u00e1ginas individuales) ========== */
.volver-link {
    display: inline-block;
    margin-bottom: 25px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    opacity: 0.9;
}

.volver-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.detalle-servicio {
    padding: 80px 20px;
    background: var(--light);
}

.detalle-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.detalle-info h2 {
    font-size: 32px;
    color: var(--dark);
    margin-bottom: 25px;
}

.detalle-info ul {
    list-style: none;
}

.detalle-info ul li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: var(--text);
}

.detalle-info ul li i {
    color: #10b981;
    margin-right: 10px;
}

.detalle-precio p {
    color: var(--text);
    margin-bottom: 20px;
    font-size: 14px;
}

.form-solo {
    max-width: 700px;
    margin: 0 auto;
}

.nota-formulario {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: -10px;
    margin-bottom: 20px;
}

.checkbox-grupo {
    margin-bottom: 20px;
    text-align: left;
}

.checkbox-grupo legend {
    font-size: 14px;
    color: var(--white);
    margin-bottom: 10px;
    font-weight: 600;
}

.checkbox-grupo label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

.checkbox-grupo input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    header .container {
        flex-wrap: nowrap;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--white);
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.12);
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }

    nav.nav-open {
        max-height: 420px;
        opacity: 1;
        visibility: visible;
    }

    nav a {
        padding: 16px 20px;
        border-bottom: 1px solid #eee;
        border-bottom-width: 1px;
        width: 100%;
    }

    .btn-header {
        margin: 15px 20px;
        justify-content: center;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .contacto-contenido {
        grid-template-columns: 1fr;
    }
    
    .precios-grid {
        grid-template-columns: 1fr;
    }

    .detalle-grid {
        grid-template-columns: 1fr;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
