/* ====================================================
   TRÁMITES RÁPIDO - Estilos personalizados
   ==================================================== */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* Section anchor offset for fixed header */
section[id] { scroll-margin-top: 90px; }

/* ============== Header shadow on scroll ============== */
#header.scrolled {
    box-shadow: 0 6px 20px -10px rgba(0, 0, 0, 0.18);
}

/* ============== Hero decorative shapes ============== */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}
.hero-shape-1 {
    width: 380px; height: 380px;
    background: rgba(0, 149, 200, 0.18);
    top: -120px; right: -100px;
}
.hero-shape-2 {
    width: 320px; height: 320px;
    background: rgba(255, 176, 0, 0.18);
    bottom: -140px; left: -100px;
}

/* ============== Service cards ============== */
.service-card {
    display: block;
    background: #fff;
    border: 1px solid #eef2f5;
    border-radius: 1.25rem;
    padding: 1.75rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0095C8, #FFB000);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.18);
    border-color: #0095C8;
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}
.service-card:hover .service-icon { transform: scale(1.08) rotate(-3deg); }

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    font-size: 0.825rem;
    font-weight: 600;
    color: #0095C8;
    transition: gap 0.2s ease;
}
.service-card:hover .service-link { gap: 0.7rem; }

/* ============== Accordion ============== */
.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: background 0.2s ease;
}
@media (min-width: 768px) {
    .accordion-header { padding: 1.5rem 1.75rem; }
}
.accordion-header:hover { background: #fafbfc; }

.accordion-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.accordion-chevron {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #f5f7fa;
    color: #0095C8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.2s ease;
}
.accordion.open .accordion-chevron {
    transform: rotate(180deg);
    background: #0095C8;
    color: #fff;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.accordion.open .accordion-body { max-height: 1500px; }

.service-item {
    position: relative;
    padding-left: 1.5rem;
    color: #444;
    font-size: 0.92rem;
    line-height: 1.5;
}
.service-item::before {
    content: "";
    position: absolute;
    left: 0; top: 0.55rem;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #FFB000;
    box-shadow: 0 0 0 3px rgba(255, 176, 0, 0.18);
}

/* ============== Benefits ============== */
.benefit-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.75rem;
    text-align: center;
    box-shadow: 0 6px 20px -12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.2);
}
.benefit-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 20px -8px rgba(0, 149, 200, 0.4);
}
.benefit-card:nth-child(even) .benefit-icon {
    box-shadow: 0 8px 20px -8px rgba(255, 176, 0, 0.45);
}

/* ============== Contact form ============== */
.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.4rem;
}
.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1.5px solid #e5e9ee;
    border-radius: 0.85rem;
    font-size: 0.95rem;
    color: #1a1a1a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}
.form-input::placeholder { color: #9aa3ad; }
.form-input:focus {
    outline: none;
    border-color: #0095C8;
    box-shadow: 0 0 0 4px rgba(0, 149, 200, 0.12);
}
select.form-input { cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23333333' stroke-width='2' viewBox='0 0 24 24'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 1.1rem;
    padding-right: 2.6rem;
}

.form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

#form-status.success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
#form-status.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* ============== Contact info cards ============== */
.contact-info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
}
a.contact-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -16px rgba(0, 0, 0, 0.25);
}

/* ============== Floating WhatsApp ============== */
#whatsapp-float .animate-ping {
    animation: floatPing 2.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes floatPing {
    0% { transform: scale(1); opacity: 0.4; }
    75%, 100% { transform: scale(1.6); opacity: 0; }
}

/* ============== Hero animations ============== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

/* ============== Reveal on scroll ============== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============== Responsive tweaks ============== */
@media (max-width: 640px) {
    .hero-shape-1, .hero-shape-2 { width: 240px; height: 240px; filter: blur(60px); }
    #whatsapp-float { padding: 0.85rem; }
}

/* Prevent body scroll when mobile menu open */
body.menu-open { overflow: hidden; }

/* Print friendly */
@media print {
    #header, #whatsapp-float, footer { display: none; }
    .accordion-body { max-height: none !important; }
}
