/* Design System: Coslada Cerrajeros Valverde */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Manrope:wght@200..800&family=Michroma&family=Sora:wght@100..800&display=swap');

:root {
    --primary-lima: #E6FF2B;
    --bg-dark: #0B4650;
    --bg-dark-hover: #08363d;
    --bg-light: #F9F7F2;
    --text-gray: #898A8D;
    --text-dark: #0B4650;
    --white: #FFFFFF;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 20px;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(230, 255, 43, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(230, 255, 43, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(230, 255, 43, 0);
    }
}

.availability-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(230, 255, 43, 0.1);
    color: var(--primary-lima);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(230, 255, 43, 0.2);
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-lima);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    line-height: 1.1;
}

h1 {
    font-family: 'Michroma', sans-serif;
    letter-spacing: -1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img,
iframe {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--primary-lima);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 255, 43, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary-lima);
    color: var(--primary-lima);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-lima);
    color: var(--bg-dark);
}

/* Header */
header {
    background: var(--bg-dark);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-family: 'Michroma', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.logo span {
    color: var(--primary-lima);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: 'DM Sans', sans-serif;
    color: var(--white);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-lima);
}

/* Hamburger Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1100;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    background: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(230, 255, 43, 0.05) 0%, transparent 70%);
    z-index: 0;
}

@media (max-width: 768px) {
    .hero::before {
        display: none;
    }
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1,
.hero-title {
    font-family: 'Michroma', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: var(--white);
}

.hero-title span {
    color: var(--primary-lima);
}

.hero-content p,
.hero-subtitle {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: #E0F2F1;
    margin-bottom: 2.5rem;
    max-width: 600px;
    opacity: 0.95;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

@media (min-width: 769px) {
    .hero-badges {
        justify-content: flex-start !important;
    }
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    font-family: 'Sora', sans-serif;
}

.hero-badge i {
    color: var(--primary-lima);
    font-size: 1rem;
    flex-shrink: 0;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .hero-badge {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .hero-ctas .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
    }
}

.hero-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1/1;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.hero-image:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* Services */
.services {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--bg-dark);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-lima);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: calc(var(--radius) - 5px);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--bg-dark);
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-gray);
}

/* Local Section */
.local-section {
    background: var(--bg-dark);
    color: var(--white);
    padding: 8rem 0;
}

.local-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.map-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Contact */
.contact {
    padding: 8rem 0;
}

/* Mobile Priority Footer CTA */
.mobile-cta {
    position: fixed;
    bottom: 2rem;
    left: 1rem;
    right: 1rem;
    z-index: 999;
    display: none;
}

/* ─── RESPONSIVE ─────────────────────────────── */

/* Large Tablet: 1024px */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin-inline: auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }
}

/* Tablet: 992px */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 1100;
    }

    header .btn.btn-primary {
        display: none;
    }

    .mobile-cta {
        display: block;
    }

    .local-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .service-hero-card {
        grid-template-columns: 1fr;
        padding: 2.5rem;
    }

    .service-hero-card h2 {
        font-size: 2rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .services-container {
        grid-template-columns: 1fr;
    }

    .services-sidebar {
        display: none;
    }
}

/* Mobile: 768px */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero {
        padding-top: 130px;
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero-title {
        font-size: clamp(1.4rem, 5vw, 1.8rem) !important;
        line-height: 1.3 !important;
        margin-bottom: 1.5rem !important;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin: 0 auto 2rem !important;
        text-align: center;
    }

    .hero-badges {
        margin: 0 auto 2rem !important;
        max-width: 480px !important;
        justify-content: center !important;
        gap: 0.8rem;
    }

    .hero-badge {
        font-size: 0.85rem !important;
        padding: 0.5rem 1rem !important;
    }

    .services {
        padding: 5rem 0;
    }

    .local-section {
        padding: 5rem 0;
    }

    .contact {
        padding: 4rem 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .info-card {
        padding: 2rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    /* Ubicaciones grid */
    .locations-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.2rem;
    }

    /* Blog grid */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* Footer grid */
    footer [style*="grid-template-columns"] {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Process steps */
    .process-step {
        flex-direction: column;
        gap: 1rem;
    }

    /* Services hero inner grid */
    .service-hero-card>div:last-child {
        display: none;
    }
}

/* Small Mobile: 480px */
@media (max-width: 480px) {
    .logo {
        font-size: 0.85rem;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .locations-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Footer: single column */
    footer [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .mobile-cta {
        bottom: 1rem;
        left: 0.75rem;
        right: 0.75rem;
    }
}

/* Advanced Services Layout */
.services-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.services-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sidebar-nav {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.sidebar-nav ul li {
    margin-bottom: 1rem;
}

.sidebar-nav a {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: var(--bg-dark);
}

.service-hero-card {
    background: var(--bg-dark);
    color: var(--white);
    padding: 4rem;
    border-radius: var(--radius);
    margin-bottom: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.service-hero-card h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-hero-card .btn {
    margin-top: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.info-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary-lima);
}

.process-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.step-number {
    background: var(--primary-lima);
    color: var(--bg-dark);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
    font-family: 'Michroma', sans-serif;
}

.brands-strip {
    background: var(--white);
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid #EEE;
    border-bottom: 1px solid #EEE;
    margin: 4rem 0;
}

.brands-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    opacity: 0.6;
    filter: grayscale(1);
}


/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid #E0E0E0;
    background: var(--bg-light);
    font-family: inherit;
    transition: var(--transition);
    font-size: 1rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-lima);
    box-shadow: 0 0 0 4px rgba(230, 255, 43, 0.1);
}

.map-container {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Fix CSS Cascade: Overrides for late-defined classes */
@media (max-width: 992px) {
    .services-container {
        grid-template-columns: 1fr;
    }

    .services-sidebar {
        display: none;
    }

    .service-hero-card {
        grid-template-columns: 1fr;
        padding: 2.5rem;
    }

    .service-hero-card h2 {
        font-size: 2rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .service-hero-card>div:last-child {
        display: none;
    }

    .contact-grid {
        gap: 3rem;
    }
}