/* ============================================
   TALLERES BELINCHON — ESTILOS
   Palette: Charcoal + Coral / Pastel Airy
   ============================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --charcoal: #2D2D2D;
    --charcoal-light: #3D3D3D;
    --charcoal-muted: #6B6B6B;
    --coral: #E86A5B;
    --coral-light: #F28E82;
    --coral-pale: #FDE8E5;
    --coral-bg: #FFF5F3;
    --cream: #FDF8F5;
    --cream-dark: #F7EDE8;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --sand: #F5EDE8;
    --sand-light: #FAF6F3;
    
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(45,45,45,0.06);
    --shadow-md: 0 4px 20px rgba(45,45,45,0.08);
    --shadow-lg: 0 8px 40px rgba(45,45,45,0.10);
    --shadow-coral: 0 4px 20px rgba(232,106,91,0.25);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

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

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 1px 20px rgba(45,45,45,0.06);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--white);
    transition: var(--transition);
    font-weight: 400;
    letter-spacing: 0.01em;
}

.navbar.scrolled .nav-logo {
    color: var(--charcoal);
}

.logo-icon {
    color: var(--coral);
}

.nav-logo strong {
    font-weight: 700;
}

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

.nav-link {
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    transition: var(--transition);
    letter-spacing: 0.01em;
}

.navbar.scrolled .nav-link {
    color: var(--charcoal-muted);
}

.nav-link:hover {
    color: var(--white);
    background: rgba(255,255,255,0.12);
}

.navbar.scrolled .nav-link:hover {
    color: var(--charcoal);
    background: var(--sand-light);
}

.nav-link--cta {
    background: var(--coral);
    color: var(--white) !important;
    font-weight: 600;
}

.nav-link--cta:hover {
    background: var(--coral-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-coral);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: var(--charcoal);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(45,45,45,0.82) 0%,
        rgba(45,45,45,0.55) 50%,
        rgba(45,45,45,0.35) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    padding-top: 80px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(232,106,91,0.2);
    border: 1px solid rgba(232,106,91,0.4);
    border-radius: 100px;
    color: var(--coral-light);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 700px;
}

.hero-title em {
    font-style: italic;
    color: var(--coral-light);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255,255,255,0.75);
    max-width: 520px;
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 300;
}

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

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.01em;
}

.btn--primary {
    background: var(--coral);
    color: var(--white);
    box-shadow: var(--shadow-coral);
}

.btn--primary:hover {
    background: var(--coral-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(232,106,91,0.35);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.35);
}

.btn--outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}

.btn--outline-light {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.5);
}

.btn--outline-light:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--white);
}

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

.btn--lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ---------- SECTION HEADER ---------- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--charcoal-muted);
    line-height: 1.8;
    font-weight: 300;
}

/* ---------- SERVICIOS ---------- */
.servicios {
    padding: 120px 0;
    background: var(--white);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.servicio-card {
    background: var(--sand-light);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.servicio-card:hover {
    background: var(--white);
    border-color: rgba(232,106,91,0.15);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.servicio-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--coral-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral);
    margin-bottom: 24px;
    transition: var(--transition);
}

.servicio-card:hover .servicio-icon {
    background: var(--coral);
    color: var(--white);
}

.servicio-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 12px;
}

.servicio-card p {
    font-size: 0.92rem;
    color: var(--charcoal-muted);
    line-height: 1.75;
    font-weight: 300;
}

/* ---------- NOSOTROS ---------- */
.nosotros {
    padding: 120px 0;
    background: var(--cream);
}

.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.nosotros-img-wrap {
    position: relative;
}

.nosotros-img-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.nosotros-img-float {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 55%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
}

.nosotros-img-float img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.nosotros-badge {
    position: absolute;
    top: -20px;
    left: -20px;
    background: var(--coral);
    color: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-coral);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.badge-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    opacity: 0.9;
}

.nosotros-content .section-tag {
    text-align: left;
}

.nosotros-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.nosotros-text {
    font-size: 1rem;
    color: var(--charcoal-muted);
    line-height: 1.85;
    margin-bottom: 16px;
    font-weight: 300;
}

.nosotros-stats {
    display: flex;
    gap: 40px;
    margin: 36px 0;
    padding: 28px 0;
    border-top: 1px solid var(--sand);
    border-bottom: 1px solid var(--sand);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--coral);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--charcoal-muted);
    font-weight: 400;
}

/* ---------- CTA SECTION ---------- */
.cta-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(232,106,91,0.88) 0%, rgba(232,106,91,0.72) 100%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 36px;
    font-weight: 300;
    line-height: 1.8;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* ---------- CONTACTO ---------- */
.contacto {
    padding: 120px 0;
    background: var(--white);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 36px;
}

.info-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: var(--radius-md);
    background: var(--coral-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral);
}

.info-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.info-item p {
    font-size: 0.9rem;
    color: var(--charcoal-muted);
    line-height: 1.7;
    font-weight: 300;
}

.info-item a {
    color: var(--coral);
    transition: var(--transition);
}

.info-item a:hover {
    color: var(--coral-light);
    text-decoration: underline;
}

.contacto-form-wrap {
    background: var(--sand-light);
    border-radius: var(--radius-xl);
    padding: 48px;
}

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

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--charcoal);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    padding: 14px 18px;
    border: 1.5px solid var(--sand);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--charcoal);
    background: var(--white);
    transition: var(--transition);
    outline: none;
    font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(232,106,91,0.1);
}

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

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

.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    gap: 16px;
}

.form-success.active {
    display: flex;
}

.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--coral-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral);
    margin-bottom: 8px;
}

.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
}

.form-success p {
    font-size: 0.95rem;
    color: var(--charcoal-muted);
    font-weight: 300;
}

/* ---------- MAPA ---------- */
.mapa-section {
    height: 380px;
    filter: grayscale(0.3);
}

.mapa-section iframe {
    width: 100%;
    height: 100%;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--charcoal);
    color: rgba(255,255,255,0.65);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 16px;
    transition: var(--transition);
}

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

.footer-logo strong {
    font-weight: 700;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.8;
    font-weight: 300;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 0.9rem;
    font-weight: 300;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--coral-light);
}

.footer-contact p {
    font-size: 0.9rem;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 4px;
}

.footer-contact a {
    color: var(--coral-light);
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    font-weight: 300;
}

/* ---------- ANIMATIONS ---------- */
[data-aos] {
    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);
}

[data-aos].aos-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nosotros-grid {
        gap: 48px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(45,45,45,0.1);
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-link {
        color: var(--charcoal) !important;
        font-size: 1.05rem;
        padding: 12px 24px;
    }
    
    .nav-link:hover {
        background: var(--sand-light) !important;
        color: var(--coral) !important;
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3.2rem);
    }
    
    .servicios-grid {
        grid-template-columns: 1fr;
    }
    
    .nosotros-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .nosotros-img-float {
        right: -10px;
        bottom: -30px;
    }
    
    .nosotros-badge {
        left: -10px;
        top: -10px;
    }
    
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contacto-form-wrap {
        padding: 32px 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .nosotros-stats {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .nosotros-img-main img {
        height: 350px;
    }
    
    .nosotros-img-float {
        width: 65%;
        bottom: -20px;
        right: -20px;
    }
}
