/* =========================
   RESET Y BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-navy: #0f2f5f;
    --color-navy-soft: #1a365d;
    --color-gold: #d4a574;
    --color-gold-strong: #d4af37;
    --color-text: #3d3d3d;
    --color-text-soft: #5a5a5a;
    --color-bg: #fefefe;
    --color-bg-soft: #f5f3f0;
    --color-bg-alt: #e8e4df;
    --color-border: #e0d5c8;
    --shadow-soft: 0 8px 24px rgba(26, 54, 93, 0.08);
    --shadow-medium: 0 15px 40px rgba(26, 54, 93, 0.12);
    --shadow-strong: 0 25px 50px rgba(26, 54, 93, 0.15);
    --radius-sm: 4px;
    --radius-md: 6px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    max-width: 100%;
    overflow-x: hidden;
    padding-top: 80px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--color-navy-soft);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================
   HEADER Y NAVEGACIÓN
========================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 8px rgba(26, 54, 93, 0.08);
    transition: transform 0.3s ease;
}
.header.header-hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-link img {
    height: 54px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    display: inline-block;
    font-weight: 500;
    color: var(--color-text);
    transition: color 0.3s ease;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 0.5rem 0;
}

.nav-menu a:hover,
.nav-menu a.active,
.dropdown-toggle.active {
    color: var(--color-gold);
    font-weight: 600;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--color-navy-soft);
    transition: 0.3s;
    border-radius: 2px;
}

/* =========================
   DROPDOWN
========================= */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 240px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 1001;
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    width: 100%;
    padding: 0.85rem 1.25rem;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(212, 165, 116, 0.12);
    text-transform: none;
    letter-spacing: 0;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: rgba(26, 54, 93, 0.05);
    color: var(--color-navy-soft);
    padding-left: 1.5rem;
}

/* =========================
   HERO
========================= */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(rgba(245, 243, 240, 0.78), rgba(232, 228, 223, 0.84)),
        url('../images/maquina-antigua.jpeg') center center / cover no-repeat;
    padding: 100px 0 90px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(245, 243, 240, 0.92) 0%,
        rgba(245, 243, 240, 0.82) 45%,
        rgba(245, 243, 240, 0.62) 100%
    );
    z-index: 1;
}

.hero-shell {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.hero-content {
    width: 100%;
    max-width: 820px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 0.95;
    margin-bottom: 1.3rem;
    color: var(--color-navy-soft);
    font-weight: 700;
    letter-spacing: -0.04em;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.12rem;
    margin: 0 auto 2rem;
    color: #4f4f4f;
    line-height: 1.95;
    max-width: 760px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================
   BOTONES
========================= */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 2px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    transition: var(--transition);
    font-size: 0.85rem;
    text-align: center;
}

.btn-primary {
    background: var(--color-navy-soft);
    color: #fff;
    border: 2px solid var(--color-navy-soft);
}

.btn-primary:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-navy-soft);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-navy-soft);
    border: 2px solid var(--color-navy-soft);
}

.btn-secondary:hover {
    background: var(--color-navy-soft);
    color: #fff;
}

/* =========================
   SECCIONES GENERALES
========================= */
section {
    padding: 80px 0;
}

section h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--color-navy-soft);
    font-weight: 700;
    letter-spacing: -0.03em;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: var(--color-gold-strong);
}

/* =========================
   ABOUT / NOSOTROS
========================= */
.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1 1 54%;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.02rem;
    line-height: 1.95;
    color: var(--color-text-soft);
}

.about-image {
    flex: 1 1 46%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 100%;
    max-width: 380px;
    max-height: 540px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-medium);
    object-fit: cover;
    object-position: center;
}

/* =========================
   SERVICES
========================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card-link {
    display: block;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card-link:hover {
    transform: translateY(-8px);
}

.service-card {
    height: 100%;
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-sm);
    border-top: 3px solid var(--color-gold);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition);
}

.service-card-link:hover .service-card,
.service-card:hover {
    box-shadow: var(--shadow-strong);
}

.service-icon {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.45rem;
    color: var(--color-navy-soft);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.service-card p {
    color: var(--color-text-soft);
    line-height: 1.8;
    font-size: 0.96rem;
}

/* =========================
   GALLERY
========================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(to top, rgba(15, 47, 95, 0.92), transparent);
    color: #fff;
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.15rem;
    color: #f6d788;
    font-weight: 700;
}

.gallery-overlay p {
    margin: 0;
    font-size: 0.88rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* =========================
   PROCESS
========================= */
.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.step {
    flex: 1 1 250px;
    min-width: 250px;
    padding: 2.5rem;
    background: #f9f7f4;
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition);
    border-left: 3px solid var(--color-gold);
    text-align: center;
}

.step:hover {
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--color-navy-soft);
    color: #fff;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 1rem;
    font-size: 1.2rem;
    font-family: 'Inter', sans-serif;
}

.step h3 {
    margin-bottom: 1rem;
    font-size: 1.45rem;
    color: var(--color-navy-soft);
    font-weight: 600;
}

.step p {
    color: var(--color-text-soft);
    line-height: 1.75;
    font-size: 0.95rem;
}

/* =========================
   TESTIMONIALS
========================= */
.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--color-gold);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-medium);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--color-text-soft);
    line-height: 1.95;
    font-size: 0.96rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--color-navy-soft);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

/* =========================
   CONTACT
========================= */
.contact-content {
    display: flex;
    gap: 4rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.contact-info {
    flex: 1 1 45%;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: var(--color-navy-soft);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.info-item p {
    color: var(--color-text-soft);
    font-size: 0.96rem;
    line-height: 1.8;
}

.contact-form {
    flex: 1 1 55%;
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    color: var(--color-navy-soft);
    font-weight: 700;
    font-size: 1.7rem;
    letter-spacing: -0.03em;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 3px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-bg);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 2px rgba(212, 165, 116, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.map-container {
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.1);
}

/* =========================
   FOOTER
========================= */
.footer {
    background: #0f2746;
    color: #f0ebe5;
    padding: 70px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1 1 220px;
    min-width: 200px;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--color-gold);
    font-size: 1.35rem;
    font-weight: 600;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #c0bab3;
    transition: color 0.3s ease;
    font-size: 0.92rem;
}

.footer-section a:hover {
    color: var(--color-gold);
}

.footer-section p {
    color: #c0bab3;
    font-size: 0.92rem;
    line-height: 1.7;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 165, 116, 0.2);
    color: #c0bab3;
    font-size: 0.85rem;
}

/* =========================
   SERVICE PAGES
========================= */
.service-hero {
    background: linear-gradient(135deg, var(--color-bg-soft) 0%, var(--color-bg-alt) 100%);
    padding: 100px 0;
    text-align: center;
}

.service-hero h1 {
    font-size: 3.4rem;
    margin-bottom: 1rem;
    color: var(--color-navy-soft);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.service-hero p {
    font-size: 1.08rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--color-text-soft);
    line-height: 1.9;
}

.benefits {
    padding: 80px 0;
    background: var(--color-bg);
}

.benefits h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-navy-soft);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    text-align: center;
    padding: 2.5rem;
    background: #f9f7f4;
    border-radius: var(--radius-sm);
    border-top: 3px solid var(--color-gold);
    transition: var(--transition);
}

.benefit-item:hover {
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.1);
}

.benefit-item h3 {
    margin-bottom: 1rem;
    font-size: 1.45rem;
    color: var(--color-navy-soft);
    font-weight: 600;
}

.benefit-item p {
    color: var(--color-text-soft);
    line-height: 1.75;
    font-size: 0.95rem;
}

.faq {
    padding: 80px 0;
    background: #f9f7f4;
}

.faq h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-navy-soft);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    background: #fff;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(26, 54, 93, 0.08);
    border-left: 3px solid var(--color-gold);
}

.faq-item h3 {
    background: var(--color-navy-soft);
    color: #fff;
    padding: 1rem 1.5rem;
    margin: 0;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.faq-item h3:hover {
    background: #243d66;
}

.faq-item p {
    padding: 1.5rem;
    margin: 0;
    color: var(--color-text-soft);
    line-height: 1.75;
}

.cta-section {
    padding: 80px 0;
    background: var(--color-navy-soft);
    color: #f0ebe5;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: 0.3px;
}

.cta-section h2::after {
    display: none;
}

.cta-section p {
    font-size: 1.08rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.9;
}

.contact-section {
    padding: 80px 0;
    background: var(--color-bg);
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-navy-soft);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
    .hero .container,
    .about-content,
    .contact-content {
        gap: 2.5rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .nav-menu {
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 72px;
    }
    .header {
        overflow: visible;
    }

    .nav-container {
        overflow: visible;
    }
    .nav-container {
        height: 72px;
    }

    .logo-link img {
        height: 46px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        right: 0;
        width: min(82vw, 320px);
        height: calc(100vh - 72px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 2rem 1.5rem;
        gap: 0.5rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: -10px 0 30px rgba(15, 47, 95, 0.08);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu > li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 1rem 0;
        font-size: 1.02rem;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        width: 100%;
        background: transparent;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        padding: 0.25rem 0 0.5rem 1rem;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(26, 54, 93, 0.08);
        font-size: 0.95rem;
    }

    .dropdown-menu a:hover {
        padding-left: 0;
        background: transparent;
        color: var(--color-navy-soft);
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .hero {
        min-height: auto;
        padding: 80px 0 70px;
        background-position: center center;
    }

    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(245, 243, 240, 0.92) 0%,
            rgba(245, 243, 240, 0.86) 100%
        );
    }

    .about-content,
    .contact-content {
        flex-direction: column;
    }

    .hero-content,
    .about-text,
    .about-image,
    .contact-info,
    .contact-form {
        width: 100%;
        max-width: 100%;
    }

    .hero-content {
        text-align: center;
    }

    .hero h1 {
        font-size: 2.8rem;
        line-height: 1;
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .hero-buttons {
        justify-content: center;
    }

    .process-steps,
    .footer-content {
        flex-direction: column;
    }

    .step {
        min-width: 100%;
    }

    .footer-content {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container,
    .nav-container {
        padding: 0 15px;
    }

    section,
    .benefits,
    .faq,
    .contact-section,
    .cta-section {
        padding: 60px 0;
    }

    .hero h1,
    .service-hero h1 {
        font-size: 2.2rem;
    }

    section h2,
    .cta-section h2 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 320px;
    }

    .services-grid,
    .benefits-grid,
    .testimonials-container,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .testimonial-card,
    .benefit-item,
    .step {
        padding: 2rem;
    }
}
