/* ===============================
   RESET & BASE
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary:   #0A1AFF;
    --secondary: #4DA3FF;
    --dark:      #0B0B0B;
    --light:     #F5F7FA;
    --white:     #FFFFFF;
    --gray:      #8A8A8A;
    --wa:        #25D366;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.6;
}

/* ===============================
   GLOBAL
================================ */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3 { font-weight: 700; }

/* ===============================
   BUTTONS
================================ */
.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/* WhatsApp button */
.btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--wa);
    color: #fff;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-wa:hover {
    background: #1fba58;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37,211,102,.35);
}

.btn-wa-lg {
    padding: 15px 36px;
    font-size: 1rem;
    letter-spacing: 0.04em;
    border-radius: 12px;
}

/* ===============================
   HEADER
================================ */
.header {
    background: var(--white);
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 700;
}

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

.nav a {
    margin: 0 15px;
    font-weight: 500;
}

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

/* ===============================
   HERO
================================ */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 100px 0;
}

.hero-content { max-width: 700px; }

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    color: #e6e9ff;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

/* ===============================
   CATEGORIES
================================ */
.categories {
    padding: 80px 0;
    background: var(--light);
}

.categories h2 {
    text-align: center;
    margin-bottom: 50px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.category-card {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,.05);
    transition: .4s ease;
}

.category-card:hover { transform: translateY(-8px); }

/* ===============================
   FEATURED (index)
================================ */
.featured { padding: 90px 0; }

.featured h2 {
    text-align: center;
    margin-bottom: 50px;
}

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

.featured-card {
    height: 420px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 20px 45px rgba(0,0,0,.08);
    transition: .4s ease;
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-card::after {
    content: "Ver plantilla";
    position: absolute;
    inset: 0;
    background: rgba(10,26,255,.75);
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: .4s ease;
}

.featured-card:hover::after { opacity: 1; }
.featured-card:hover { transform: translateY(-10px); }

/* ===============================
   IMAGE MODAL
================================ */
.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: .4s ease;
    z-index: 2000;
}

.image-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 14px;
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

/* ===============================
   BENEFITS
================================ */
.benefits {
    background: var(--primary);
    color: var(--white);
    padding: 50px 0;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
    font-weight: 600;
}

/* ===============================
   SERVICES SECTION
================================ */
.services-section {
    padding: 90px 0;
    background: var(--light);
}

.services-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 14px;
}

.services-sub {
    text-align: center;
    color: var(--gray);
    max-width: 580px;
    margin: 0 auto 50px;
    font-size: 1rem;
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px 26px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    transition: transform .3s;
    text-align: center;
}

.service-card:hover { transform: translateY(-6px); }

.service-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 14px;
}

.service-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.service-card p {
    color: var(--gray);
    font-size: 0.88rem;
    line-height: 1.6;
}

.services-cta {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.contact-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: 0.02em;
}

/* ===============================
   CTA
================================ */
.cta {
    padding: 90px 0;
    text-align: center;
    background: var(--white);
}

.cta h2 { margin-bottom: 14px; }
.cta p  { color: var(--gray); margin-bottom: 30px; line-height: 1.7; }

/* ===============================
   FOOTER
================================ */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-text {
    font-size: 0.95rem;
    color: #cfcfcf;
}

.footer-text strong { color: var(--white); }

/* ===============================
   SOCIAL ICONS
================================ */
.socials {
    display: flex;
    align-items: center;
    gap: 16px;
}

.socials a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    transition: 0.3s ease;
}

.socials img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.socials a:hover {
    background: var(--primary);
    transform: translateY(-4px);
}

/* ===============================
   WHATSAPP FLOTANTE
================================ */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 900;
    width: 58px;
    height: 58px;
    background: var(--wa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37,211,102,.45);
    transition: transform .25s;
    animation: waBounce 3s ease-in-out infinite;
}

.wa-float:hover { transform: scale(1.12); }

@keyframes waBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    .nav { display: none; }
    .hero h1 { font-size: 2.2rem; }
    .footer-content { flex-direction: column; text-align: center; }
    .hero-buttons { flex-direction: column; }
}
