/* 
  Estilo Profesional - Mandataria Automotor
  Diseño oscuro, elegante y moderno.
*/

:root {
    /* Colors */
    --bg-dark: #0a0a0a;
    --navy-blue: #1a3a6b;
    --electric-blue: #2d6bb5;
    --text-white: #ffffff;
    --text-gray: #a0aab8;
    --card-bg: #111111;
    --border-color: rgba(45, 107, 181, 0.2);
    --wsp-color: #25d366;

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: clamp(60px, 10vw, 120px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
    overflow-x: hidden;
}

/* Barra de Scroll Personalizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: var(--navy-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--electric-blue);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-gray);
    font-family: var(--font-body);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    color: var(--text-white);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Typography elements */
.accent-line {
    width: 60px;
    height: 3px;
    background: var(--electric-blue);
    margin: 1.5rem 0;
    border-radius: 2px;
}

.center-line {
    margin: 1.5rem auto;
}

.section-header.center {
    text-align: center;
}

.section-padding {
    padding: var(--section-padding) 5%;
}

/* Layout tools */
.split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

/* Floating WhatsApp Button */
.float-wa {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--wsp-color);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 2000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.float-wa svg {
    width: 32px;
    height: 32px;
}

.float-wa:hover {
    transform: scale(1.1) translateY(-5px);
}

/* Nav */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo {
    height: clamp(55px, 8vw, 75px);
    width: auto;
    max-width: 220px;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 28px;
    height: 2px;
    background-color: var(--text-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.desktop-cta {
    display: none;
}

/* Mobile Sidebar Setup */
.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(15px);
    border-left: 1px solid var(--border-color);
    padding: 100px 30px;
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1);
    z-index: 999;
}

.nav-links.active {
    right: 0;
}

/* Transform hamburger to X */
.menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    .desktop-cta {
        display: block;
    }

    .mobile-cta-btn {
        display: none;
    }

    .nav-links {
        position: absolute;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        flex-direction: row;
        width: auto;
        height: auto;
        padding: 0;
        background: transparent;
        border: none;
    }
}

.nav-links a {
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--electric-blue);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--electric-blue);
    color: var(--text-white) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(45, 107, 181, 0.4);
}

.nav-cta:hover {
    background: var(--navy-blue);
    box-shadow: 0 6px 20px rgba(45, 107, 181, 0.6);
    transform: translateY(-2px);
}

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45, 107, 181, 0.3), transparent);
    margin: 4rem 0;
}

.title-large {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 6rem 5% 4rem;
    text-align: center;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        align-items: flex-start;
        padding-top: 3rem;
    }
}

.glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140vw;
    height: 140vw;
    max-width: 1400px;
    max-height: 1400px;
    background: radial-gradient(circle, rgba(26, 58, 107, 0.6) 0%, rgba(10, 10, 10, 0) 70%);
    z-index: 0;
    pointer-events: none;
    animation: pulseGlow 8s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: fadeIn 1.2s ease-out forwards;
}

.hero-logo {
    width: clamp(100px, 15vw, 150px);
    height: auto;
    object-fit: contain;
    margin-bottom: -0.5rem;
    filter: drop-shadow(0 0 20px rgba(45, 107, 181, 0.4));
    animation: fadeInLogo 1s ease-out forwards;
}

@keyframes fadeInLogo {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-name {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 600;
    letter-spacing: -1px;
    margin: 0;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    letter-spacing: 4px;
    font-weight: 500;
    color: var(--electric-blue);
    text-transform: uppercase;
}

.hero-matricula {
    font-family: monospace;
    font-size: 0.85rem;
    padding: 4px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: rgba(45, 107, 181, 0.05);
    margin-top: -0.5rem;
}

.hero-quote {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-white);
    font-weight: 300;
    max-width: 600px;
    margin-top: 1rem;
    line-height: 1.4;
}

.hero-secondary-text {
    font-size: 1rem;
    max-width: 500px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: #25d366;
    color: var(--text-white) !important;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1.5rem;
    border: none;
    width: fit-content;
    max-width: 100%;
    transition: all 0.3s ease;
}

.btn-whatsapp span {
    text-align: center;
    white-space: normal;
}

.contact-info .btn-whatsapp {
    align-self: flex-start;
}

@media (max-width: 500px) {
    .btn-whatsapp {
        width: 100%;
        padding: 1rem 1rem;
        font-size: 0.9rem;
    }

    .contact-info .btn-whatsapp {
        align-self: center;
    }
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    background: #20b055;
}

/* Services */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-card {
    flex: 1 1 280px;
    max-width: 400px;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8), rgba(10, 10, 10, 1));
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(circle, rgba(45, 107, 181, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    border-color: rgba(45, 107, 181, 0.5);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(45, 107, 181, 0.2);
}

.service-icon {
    margin-bottom: 0.5rem;
    color: var(--electric-blue);
    display: inline-flex;
    padding: 12px;
    background: rgba(45, 107, 181, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(45, 107, 181, 0.1);
    width: fit-content;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
}

.service-card p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* About Section */
.about-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-content strong {
    color: var(--text-white);
    font-weight: 500;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: rgba(45, 107, 181, 0.05);
    border-left: 3px solid var(--electric-blue);
    margin-top: 2rem;
}

.badge-icon {
    color: var(--electric-blue);
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-text span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-text strong {
    color: var(--text-white);
    font-family: monospace;
    font-size: 0.95rem;
}

.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.about-visual::before {
    content: '';
    position: absolute;
    width: clamp(280px, 80vw, 400px);
    height: clamp(360px, 100vw, 520px);
    border: 3px solid var(--electric-blue);
    border-radius: 20px;
    z-index: 0;
    transform: translate(20px, 20px);
    transition: transform 0.5s ease, border-color 0.5s ease;
}

.about-visual:hover::before {
    transform: translate(10px, 10px);
    border-color: var(--text-white);
}

.img-wrapper {
    position: relative;
    z-index: 1;
    width: clamp(280px, 80vw, 400px);
    height: clamp(360px, 100vw, 520px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.7s ease;
    filter: brightness(0.9) contrast(1.1);
}

.about-visual:hover .img-wrapper {
    transform: translateY(-5px) translateX(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(45, 107, 181, 0.4);
}

.about-visual:hover .about-img {
    transform: scale(1.03);
    filter: brightness(1) contrast(1.1);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 4px;
    border-top: 2px solid var(--navy-blue);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-family: var(--font-heading);
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
}

.stars {
    color: #eab308;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.review {
    font-style: italic;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.client-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Redesign */
.contact-redesigned {
    padding: var(--section-padding) 5% 0;
    /* no bottom padding to fit the bar */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-wrapper {
    background: #111;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    margin-bottom: 4rem;
}

@media (min-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info {
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 58, 107, 0.1), transparent);
}

@media (min-width: 768px) {
    .contact-info {
        padding: 4rem;
    }
}

.contact-info h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.contact-desc {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 400px;
}

.btn-large {
    align-self: flex-start;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    margin-bottom: 3.5rem;
}

.contact-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(45, 107, 181, 0.1);
    color: var(--electric-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(45, 107, 181, 0.2);
}

.detail-text {
    display: flex;
    flex-direction: column;
}

.detail-text strong {
    color: var(--text-white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.detail-text a,
.detail-text span {
    font-size: 1.05rem;
    transition: color 0.3s;
}

.detail-text a:hover {
    color: var(--electric-blue);
}

.map-wrapper {
    width: 100%;
    min-height: 400px;
}

.contact-map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: invert(90%) hue-rotate(180deg) brightness(85%) sepia(20%);
}

.copyright-bar {
    width: 100%;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.copyright-bar .made-by {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.5px;
}

.copyright-bar .made-by a {
    color: rgba(45, 107, 181, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright-bar .made-by a:hover {
    color: var(--electric-blue);
}