/**
 * Gráfica Santa Rosa – Custom CSS
 * Estilos complementarios a Tailwind CSS
 */

/* ── Fonts ─────────────────────────────────────────────────────── */
:root {
    --primary: #D32F2F;
    --primary-dark: #B71C1C;
    --primary-light: #EF5350;
    --secondary: #1A1A1A;
    --accent: #F59E0B;
    --accent-dark: #D97706;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
}

/* ── Global ─────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1A1A1A;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ── Header ─────────────────────────────────────────────────────── */
#site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow .3s, background .3s;
}

#site-header.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, .12);
}

.nav-link {
    position: relative;
    font-weight: 500;
    color: #1A1A1A;
    transition: color .2s;
    padding: .25rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width .3s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: -16px;
    min-width: 220px;
    background: #fff;
    border-radius: 12px;
    padding: .5rem 0;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .25s ease;
    z-index: 100;
    border-top: 3px solid var(--primary);
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .65rem 1.25rem;
    color: #374151;
    font-size: .875rem;
    font-weight: 500;
    transition: color .2s, background .2s;
}

.dropdown-menu a:hover {
    color: var(--primary);
    background: #FEF2F2;
}

/* Mobile menu */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.4, 0, .2, 1);
}

#mobile-menu.open {
    max-height: 800px;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
    padding: .75rem 1.75rem;
    border-radius: 50px;
    transition: transform .2s, box-shadow .2s;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(211, 47, 47, .35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(211, 47, 47, .45);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .7);
    font-weight: 600;
    padding: .75rem 1.75rem;
    border-radius: 50px;
    transition: background .2s, border-color .2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, .15);
    border-color: #fff;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 600;
    padding: .7rem 1.75rem;
    border-radius: 50px;
    transition: background .2s, color .2s;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-wa {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #25D366;
    color: #fff;
    font-weight: 600;
    padding: .75rem 1.75rem;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, .35);
    transition: transform .2s, box-shadow .2s;
}

.btn-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
}

/* ── Hero Home ───────────────────────────────────────────────────── */
.hero-home {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f0f 0%, #1A1A1A 40%, #2D0E0E 70%, #B71C1C 100%);
    position: relative;
    overflow: hidden;
}

.hero-home::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D32F2F' fill-opacity='0.06'%3E%3Cpath d='M0 0h80v80H0z'/%3E%3Cpath d='M20 20h40v40H20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(245, 158, 11, .15);
    border: 1px solid rgba(245, 158, 11, .3);
    color: var(--accent);
    font-size: .8rem;
    font-weight: 600;
    padding: .35rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    text-align: center;
}

/* Floating cards in hero */
.float-card {
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .2);
    position: absolute;
}

.float-card-1 {
    top: 20%;
    right: -20px;
    animation: float1 4s ease-in-out infinite;
}

.float-card-2 {
    bottom: 25%;
    right: 10%;
    animation: float2 5s ease-in-out infinite;
}

@keyframes float1 {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-12px)
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(10px)
    }
}

/* ── Section ─────────────────────────────────────────────────────── */
.section {
    padding: 6rem 0;
}

.section-sm {
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #FEF2F2;
    color: var(--primary);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .05em;
    padding: .35rem 1rem;
    border-radius: 50px;
    text-transform: uppercase;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: #1A1A1A;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: #6B7280;
    line-height: 1.7;
    max-width: 640px;
}

/* ── Cards ───────────────────────────────────────────────────────── */
.service-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
    transition: transform .3s, box-shadow .3s;
    border: 1px solid #F3F4F6;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .12);
}

.service-card .icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, #FEF2F2, #FECACA);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: .75rem;
}

.service-card p {
    color: #6B7280;
    font-size: .9rem;
    line-height: 1.7;
}

/* ── Feature cards ───────────────────────────────────────────────── */
.feature-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .05);
    border: 1px solid #F3F4F6;
    transition: box-shadow .3s;
}

.feature-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, .1);
}

.feature-card .icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
}

/* ── Stats ───────────────────────────────────────────────────────── */
.stat-card {
    text-align: center;
    padding: 2rem;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.stat-card:last-child {
    border-right: none;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: .9rem;
    color: rgba(255, 255, 255, .7);
    margin-top: .5rem;
}

/* ── Testimonials ────────────────────────────────────────────────── */
.testi-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .07);
    border-left: 4px solid var(--primary);
}

.stars {
    color: #F59E0B;
    font-size: 1rem;
}

/* ── Blog card ───────────────────────────────────────────────────── */
.blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
    transition: transform .3s, box-shadow .3s;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
}

.blog-card-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.blog-card:hover .blog-card-thumb img {
    transform: scale(1.05);
}

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq-item {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .2s;
}

.faq-item.open {
    border-color: var(--primary);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    background: #fff;
    transition: background .2s;
    border: none;
}

.faq-question:hover {
    background: #FEF2F2;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    background: #FAFAFA;
    font-size: .95rem;
    color: #374151;
    line-height: 1.75;
}

.faq-answer.open {
    max-height: 400px;
}

.faq-answer-inner {
    padding: 0 1.5rem 1.25rem;
}

.faq-icon {
    transition: transform .3s;
    color: var(--primary);
    font-size: 1.1rem;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

/* ── Page Hero (inner pages) ─────────────────────────────────────── */
.page-hero {
    min-height: 420px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1A1A1A 0%, #2D1010 50%, #B71C1C 100%);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23D32F2F' fill-opacity='0.08'%3E%3Cpath d='M0 0h60v60H0z'/%3E%3C/g%3E%3C/svg%3E");
}

.breadcrumb a {
    color: rgba(255, 255, 255, .7);
    transition: color .2s;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb span {
    color: rgba(255, 255, 255, .4);
    margin: 0 .5rem;
}

/* ── CTA Banner ──────────────────────────────────────────────────── */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #EF5350 100%);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(255, 255, 255, .05) 0%, transparent 60%);
}

/* ── Contact form ────────────────────────────────────────────────── */
.form-input {
    width: 100%;
    padding: .875rem 1.125rem;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: .95rem;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
    background: #fff;
    color: #1A1A1A;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(211, 47, 47, .1);
}

.form-input::placeholder {
    color: #9CA3AF;
}

.form-label {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: .4rem;
}

/* ── WhatsApp Float Button ───────────────────────────────────────── */
#wa-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 8px 24px rgba(37, 211, 102, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #fff;
    cursor: pointer;
    transition: transform .2s;
    animation: waPulse 2.5s ease-in-out infinite;
}

#wa-float:hover {
    transform: scale(1.1);
}

@keyframes waPulse {

    0%,
    100% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, .5)
    }

    50% {
        box-shadow: 0 8px 40px rgba(37, 211, 102, .7)
    }
}

/* ── Tag / Badge ─────────────────────────────────────────────────── */
.tag {
    display: inline-flex;
    align-items: center;
    padding: .2rem .75rem;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600;
}

/* ── Pricing card ────────────────────────────────────────────────── */
.price-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .07);
    border: 2px solid #F3F4F6;
    transition: border-color .3s, transform .3s;
}

.price-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.price-card.featured {
    border-color: var(--primary);
    position: relative;
    background: linear-gradient(135deg, #FFF 0%, #FEF2F2 100%);
}

.price-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: .3rem 1rem;
    border-radius: 50px;
    white-space: nowrap;
}

/* ── Step / Process ──────────────────────────────────────────────── */
.step-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-num {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    flex-shrink: 0;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.footer-link {
    color: rgba(255, 255, 255, .65);
    transition: color .2s;
    font-size: .9rem;
}

.footer-link:hover {
    color: var(--accent);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .8);
    font-size: .95rem;
    transition: background .2s, color .2s;
}

.social-icon:hover {
    background: var(--primary);
    color: #fff;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-home {
        min-height: 80vh;
    }

    .section {
        padding: 4.5rem 0;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3.5rem 0;
    }

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

    .stat-card {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
        padding: 1.5rem 1rem;
    }

    .stat-card:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .float-card-1,
    .float-card-2 {
        display: none;
    }
}

/* ── Utility ─────────────────────────────────────────────────────── */
.prose h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #1A1A1A;
    margin: 2rem 0 1rem;
}

.prose h3 {
    font-weight: 700;
    font-size: 1.125rem;
    color: #1A1A1A;
    margin: 1.5rem 0 .75rem;
}

.prose p {
    color: #4B5563;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.prose ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.prose ul li {
    color: #4B5563;
    margin-bottom: .4rem;
    line-height: 1.7;
}

.prose strong {
    color: #1A1A1A;
}

/* ── WordPress Pagination ────────────────────────────────────────── */
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 600;
    color: #374151;
    border: 1px solid #E5E7EB;
    transition: background .2s, color .2s, border-color .2s;
    margin: 0 .25rem;
    text-decoration: none;
}

.page-numbers:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.page-numbers.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.page-numbers.dots {
    border-color: transparent;
    width: auto;
    padding: 0 .5rem;
}

/* ── Shadow card utility ─────────────────────────────────────────── */
.shadow-card {
    box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
}

.shadow-card-hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, .14);
}

/* ── Blog single ─────────────────────────────────────────────────── */
.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    transition: background .2s, color .2s;
    text-decoration: none;
}

/* ── Line clamp utility ──────────────────────────────────────────── */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Min height hero utility ─────────────────────────────────────── */
.min-h-screen-minus-header {
    min-height: calc(100vh - 90px);
}

/* ── Prose table (for search comparison table) ───────────────────── */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.prose table th,
.prose table td {
    padding: .75rem 1rem;
    border: 1px solid #E5E7EB;
    text-align: left;
    font-size: .9rem;
}

.prose table th {
    background: #1A1A1A;
    color: #fff;
    font-weight: 600;
}

.prose table tr:nth-child(even) td {
    background: #F9FAFB;
}