/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg: #0f172a;
    --bg-soft: #1e293b;
    --card: rgba(15, 23, 42, 0.72);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --border: rgba(148, 163, 184, 0.25);
    --primary-red: #e63946;
    --primary-red-dark: #c81d2c;
    --green: #22c55e;
    --green-dark: #16a34a;
    --blue: #3b82f6;
    --blue-dark: #2563eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    min-height: 100vh;
    line-height: 1.55;
    background:
        radial-gradient(80rem 40rem at 90% -10%, rgba(59, 130, 246, 0.15), transparent 60%),
        radial-gradient(70rem 35rem at -10% 110%, rgba(230, 57, 70, 0.12), transparent 60%),
        linear-gradient(160deg, var(--bg) 0%, var(--bg-soft) 100%);
}

/* Accessibility */
.skip-to-main {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 0.75rem 1rem;
    background: var(--primary-red);
    color: #fff;
    border-radius: 0 0 8px 0;
    text-decoration: none;
    font-weight: 600;
}

.skip-to-main:focus {
    left: 0;
}

/* Layout */
.container {
    max-width: 560px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main-content {
    width: 100%;
    padding: 1.25rem 1rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--card);
    backdrop-filter: blur(8px);
    box-shadow: 0 16px 48px rgba(2, 6, 23, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.header {
    width: 100%;
    margin-bottom: 0.9rem;
}

.logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    padding: 0.18rem 0.9rem;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.2);
    overflow: hidden;
}

.logo {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.logo-container::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    background: conic-gradient(
        from 0deg,
        rgba(230, 57, 70, 0.25),
        rgba(59, 130, 246, 0.2),
        rgba(34, 197, 94, 0.2),
        rgba(230, 57, 70, 0.25)
    );
    filter: blur(8px);
    opacity: 0.45;
    z-index: 0;
    animation: halo-spin 16s linear infinite;
}

.logo-container::after {
    content: "";
    position: absolute;
    top: -30%;
    left: -45%;
    width: 42%;
    height: 160%;
    transform: rotate(22deg);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.38) 52%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
    animation: sheen-move 4.8s ease-in-out infinite;
}

@keyframes halo-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes sheen-move {
    from {
        left: -45%;
    }
    to {
        left: 115%;
    }
}

.title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 0.25rem;
}

.subtitle {
    color: var(--muted);
    font-size: 0.98rem;
    max-width: 40ch;
}

.maintenance-note {
    color: #cbd5e1;
    font-size: 0.9rem;
    max-width: 46ch;
    margin-bottom: 0.5rem;
}

/* CTA */
.cta-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0.25rem 0 0.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 46px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    font-size: 0.96rem;
    font-weight: 700;
    transition: transform 0.16s ease, filter 0.16s ease;
}

.cta-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.cta-button:active {
    transform: translateY(0);
}

.cta-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.cta-call {
    background: linear-gradient(180deg, var(--primary-red), var(--primary-red-dark));
}

.cta-whatsapp {
    background: linear-gradient(180deg, var(--green), var(--green-dark));
}

.cta-directions {
    background: linear-gradient(180deg, var(--blue), var(--blue-dark));
}

/* Contact */
.contact-info {
    width: 100%;
    border-top: 1px solid var(--border);
    margin-top: 0.25rem;
    padding-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    align-items: center;
}

.map-section {
    width: 100%;
    margin-top: 0.4rem;
}

.map-title {
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 0.45rem;
    font-weight: 700;
}

.map-embed {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.map-embed iframe {
    width: 100%;
    height: 220px;
    display: block;
}

.contact-item {
    color: var(--muted);
    text-decoration: none;
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.45;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    max-width: 44ch;
}

.contact-item:hover {
    color: var(--text);
}

.contact-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 0.18rem;
}

.footer {
    text-align: center;
    color: var(--muted);
    font-size: 0.78rem;
    padding: 0.75rem 0 0.1rem;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 0.65rem;
    }

    .main-content {
        padding: 1rem 0.85rem;
        border-radius: 16px;
    }

    .header {
        margin-bottom: 0.65rem;
    }

    .logo {
        max-width: 250px;
    }

    .logo-container {
        padding: 0.12rem 0.7rem;
    }

    .logo-container::after {
        width: 48%;
    }

    .title {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 0.92rem;
    }

    .maintenance-note {
        font-size: 0.84rem;
    }

    .map-embed iframe {
        height: 190px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .logo-container::before,
    .logo-container::after {
        animation: none !important;
    }
}

.cta-button:focus,
.contact-item:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}
