/* ============================================
   Guzmán & Ruiz Reformas — Estilos completos
   ============================================ */

/* ── Variables ── */
:root {
    --terracotta: #C05A3D;
    --terracotta-dark: #A04830;
    --terracotta-light: #E07A5F;
    --sand: #F5EDE3;
    --sand-light: #FAF6F1;
    --sand-dark: #E8DDD0;
    --cream: #FDF8F3;
    --brown: #5C3D2E;
    --brown-dark: #3D2519;
    --text: #2D1F17;
    --text-light: #6B5344;
    --text-muted: #9B8578;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(45, 31, 23, 0.06);
    --shadow-md: 0 8px 30px rgba(45, 31, 23, 0.10);
    --shadow-lg: 0 20px 60px rgba(45, 31, 23, 0.14);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-xl: 48px;
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Figtree', system-ui, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg-cream, var(--cream));
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--terracotta);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 200;
    font-weight: 600;
    transition: top var(--transition);
}

.skip-link:focus {
    top: 16px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Typography ── */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text);
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    margin-bottom: 24px;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: 16px;
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin-bottom: 12px;
}

em {
    font-style: italic;
    color: var(--terracotta);
}

/* ── Section helpers ── */
.section {
    padding: 100px 0;
}

.section--sand {
    background-color: var(--sand);
}

.section--terracotta {
    background-color: var(--terracotta);
    color: var(--white);
}

.section--terracotta h2,
.section--terracotta h3 {
    color: var(--white);
}

.section--terracotta em {
    color: var(--sand);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.section--terracotta .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terracotta);
    background: rgba(192, 90, 61, 0.1);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-tag--light {
    color: var(--sand);
    background: rgba(255, 255, 255, 0.15);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 100px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--terracotta);
    color: var(--white);
    border-color: var(--terracotta);
}

.btn-primary:hover {
    background: var(--terracotta-dark);
    border-color: var(--terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(192, 90, 61, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--terracotta);
    border-color: var(--terracotta);
}

.btn-ghost:hover {
    background: var(--terracotta);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--terracotta);
    border-color: var(--terracotta);
}

.btn-outline:hover {
    background: var(--terracotta);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 22px;
    font-size: 0.88rem;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ── Header ── */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(253, 248, 243, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(192, 90, 61, 0.08);
    transition: box-shadow var(--transition);
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text);
}

.logo--light {
    color: var(--white);
}

.logo--light svg path {
    fill: var(--terracotta-light) !important;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 100px;
    transition: all var(--transition);
}

nav a:hover {
    color: var(--terracotta);
    background: rgba(192, 90, 61, 0.08);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero ── */
.hero {
    padding: 140px 0 0;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.hero-wave {
    margin-top: -1px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-bottom: 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--terracotta);
    background: rgba(192, 90, 61, 0.08);
    padding: 8px 18px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--terracotta);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-desc strong {
    color: var(--text);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Hero images */
.hero-image {
    position: relative;
    min-height: 580px;
}

.hero-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-img-float {
    position: absolute;
    bottom: -30px;
    left: -40px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--cream);
}

.hero-img-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.float-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: var(--white);
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

.float-number {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--terracotta);
    line-height: 1;
}

.float-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-accent {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: var(--terracotta);
    opacity: 0.06;
    border-radius: 50%;
    z-index: -1;
}

/* ── Services ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(192, 90, 61, 0.06);
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(192, 90, 61, 0.15);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: rgba(192, 90, 61, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta);
    margin-bottom: 24px;
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--terracotta);
    color: var(--white);
}

.service-card h3 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.2rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--terracotta);
    transition: gap var(--transition);
}

.service-link:hover {
    gap: 10px;
}

/* ── Process ── */
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 960px;
    margin: 0 auto;
}

.process-step {
    text-align: center;
    padding: 0 24px;
    position: relative;
}

.step-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 400;
    color: var(--terracotta);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 16px;
}

.step-content h3 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 12px;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

.step-connector {
    display: none;
}

/* ── Projects ── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.project-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(45, 31, 23, 0.85) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    opacity: 0;
    transition: opacity var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sand);
    background: var(--terracotta);
    padding: 4px 12px;
    border-radius: 100px;
    width: fit-content;
    margin-bottom: 10px;
}

.project-overlay h3 {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.project-overlay p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
}

.project-card--large {
    grid-column: span 7;
    min-height: 400px;
}

.project-card--wide {
    grid-column: span 12;
    min-height: 260px;
}

.project-card:not(.project-card--large):not(.project-card--wide) {
    grid-column: span 5;
    min-height: 300px;
}

/* ── About ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: -1;
}

.about-content h2 {
    color: var(--white);
    margin-bottom: 24px;
}

.about-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-content strong {
    color: var(--white);
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--white);
}

.value-item svg {
    flex-shrink: 0;
    color: var(--sand);
}

/* ── CTA ── */
.cta {
    padding: 80px 0;
    background: var(--sand-light);
}

.cta-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 64px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(192, 90, 61, 0.06);
}

.cta-content h2 {
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 480px;
}

.cta-content p strong {
    color: var(--terracotta);
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Contact ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.detail-item {
    display: flex;
    gap: 16px;
}

.detail-icon {
    width: 52px;
    height: 52px;
    background: rgba(192, 90, 61, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-item strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.detail-item p {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
}

.detail-item a {
    color: var(--terracotta);
    font-weight: 500;
    transition: color var(--transition);
}

.detail-item a:hover {
    color: var(--terracotta-dark);
}

/* Form */
.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(192, 90, 61, 0.06);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 14px 18px;
    border: 2px solid var(--sand-dark);
    border-radius: var(--radius-sm);
    background: var(--sand-light);
    color: var(--text);
    transition: all var(--transition);
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--terracotta);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(192, 90, 61, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-privacy {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}

/* Success state */
.form-success {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.form-success h3 {
    font-size: 1.5rem;
    color: var(--text);
}

.form-success p {
    color: var(--text-light);
    font-size: 0.95rem;
    max-width: 360px;
}

.form-success .success-icon {
    width: 72px;
    height: 72px;
    background: rgba(192, 90, 61, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

/* ── Footer ── */
.footer {
    background: var(--brown-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 60px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.92rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links strong,
.footer-contact strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sand);
    margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a,
.footer-contact a {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--sand);
}

.footer-contact span {
    font-size: 0.92rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 40px;
    }

    .hero-image {
        min-height: 480px;
    }

    .about-grid {
        gap: 48px;
    }

    .cta-card {
        padding: 48px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    .container {
        padding: 0 20px;
    }

    /* Mobile nav */
    .mobile-menu-btn {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100dvh;
        background: var(--cream);
        box-shadow: var(--shadow-lg);
        padding: 100px 32px 40px;
        transition: right var(--transition);
        z-index: 105;
    }

    nav.open {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    nav a {
        display: block;
        padding: 14px 16px;
        font-size: 1.05rem;
        border-radius: var(--radius-sm);
    }

    nav .btn {
        text-align: center;
        justify-content: center;
        margin-top: 16px;
    }

    /* Hero */
    .hero {
        padding: 110px 0 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-image {
        order: -1;
        min-height: 360px;
    }

    .hero-img-float {
        left: -16px;
        bottom: -20px;
    }

    .hero-img-float img {
        width: 200px;
        height: 150px;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card--large,
    .project-card--wide,
    .project-card:not(.project-card--large):not(.project-card--wide) {
        grid-column: span 1;
        min-height: 240px;
    }

    .project-overlay {
        opacity: 1;
    }

    /* Process */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .step-connector {
        display: flex;
        justify-content: center;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .cta-card {
        grid-template-columns: 1fr;
        padding: 36px;
        gap: 32px;
    }

    .cta-actions {
        flex-direction: row;
    }

    .cta-actions .btn {
        flex: 1;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-form-wrapper {
        padding: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-trust {
        flex-direction: column;
        gap: 12px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
