/* =============================================
Art direction: Trabajos verticales → industrial,
masculino, técnico, fiable.
Palette: oscuro antracita + naranja vibrante (seguridad/alerta)
Typography: Cabinet Grotesk (display) + Satoshi (body)
Density: espaciado, impactante
============================================= */

/* Cabinet Grotesk */
@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('fonts/CabinetGrotesk-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('fonts/CabinetGrotesk-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('fonts/CabinetGrotesk-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('fonts/CabinetGrotesk-Extrabold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Satoshi */
@font-face {
  font-family: 'Satoshi';
  src: url('fonts/Satoshi-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('fonts/Satoshi-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('fonts/Satoshi-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root, [data-theme="light"] {
--text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
--text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
--text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
--text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
--text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
--text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
--text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
--text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

--space-1:  0.25rem;
--space-2:  0.5rem;
--space-3:  0.75rem;
--space-4:  1rem;
--space-5:  1.25rem;
--space-6:  1.5rem;
--space-8:  2rem;
--space-10: 2.5rem;
--space-12: 3rem;
--space-16: 4rem;
--space-20: 5rem;
--space-24: 6rem;
--space-32: 8rem;

--color-bg:              #f8f7f5;
--color-surface:         #f3f2ef;
--color-surface-2:       #edecea;
--color-surface-offset:  #e4e2de;
--color-divider:         #d8d5d0;
--color-border:          #ccc9c3;
--color-text:            #1a1916;
--color-text-muted:      #6b6965;
--color-text-faint:      #b0aea9;
--color-text-inverse:    #f7f6f2;
--color-primary:         #e85d04;
--color-primary-hover:   #c44d00;
--color-primary-active:  #a33f00;
--color-primary-highlight: #f7dece;
--color-dark:            #1a1916;
--color-dark-surface:    #232220;
--color-success:         #2e7d32;
--color-success-highlight: #e8f5e9;
--color-error:           #c62828;
--color-error-highlight: #ffebee;

--cookies-bg: linear-gradient(135deg, #99938a 0%, #615d58 100%);

--radius-sm: 0.25rem;
--radius-md: 0.5rem;
--radius-lg: 0.75rem;
--radius-xl: 1rem;
--radius-full: 9999px;
--transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

--shadow-sm: 0 1px 2px oklch(0.12 0.01 60 / 0.08);
--shadow-md: 0 4px 12px oklch(0.12 0.01 60 / 0.12);
--shadow-lg: 0 12px 32px oklch(0.12 0.01 60 / 0.18);

--font-display: 'Cabinet Grotesk', 'Georgia', sans-serif;
--font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
}

[data-theme="dark"] {
--color-bg:              #111110;
--color-surface:         #181714;
--color-surface-2:       #1f1e1c;
--color-surface-offset:  #252421;
--color-divider:         #2e2d2a;
--color-border:          #363532;
--color-text:            #e8e6e2;
--color-text-muted:      #8a8880;
--color-text-faint:      #55534f;
--color-text-inverse:    #1a1916;
--color-primary:         #ff6b1a;
--color-primary-hover:   #ff8840;
--color-primary-active:  #ff9f5e;
--color-primary-highlight: #3d2212;
--color-dark:            #111110;
--color-dark-surface:    #181714;
--color-success:#66bb6a;
--color-success-highlight:#1b2e1c;
--color-error:#ef5350;
--color-error-highlight:#2e1515;

--cookies-bg: linear-gradient(135deg, #302e2b 0%, #736c66 100%);

--shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
--shadow-md: 0 4px 12px oklch(0 0 0 / 0.35);
--shadow-lg: 0 12px 32px oklch(0 0 0 / 0.45);
}

@media (prefers-color-scheme: light) {
:root:not([data-theme]) {
    --color-bg: #f8f7f5;
    --color-surface: #f3f2ef;
    --color-surface-2: #edecea;
    --color-surface-offset: #e4e2de;
    --color-divider: #d8d5d0;
    --color-border: #ccc9c3;
    --color-text: #1a1916;
    --color-text-muted: #6b6965;
    --color-text-faint: #b0aea9;
    --color-text-inverse: #f7f6f2;
    --color-primary: #e85d04;
    --color-primary-hover: #c44d00;
    --color-primary-active: #a33f00;
}
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
scroll-behavior: smooth;
scroll-padding-top: var(--space-16);
}
body {
min-height: 100dvh;
line-height: 1.6;
font-family: var(--font-body);
font-size: var(--text-base);
color: var(--color-text);
background-color: var(--color-bg);
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.1; font-family: var(--font-display); }
p, li { text-wrap: pretty; }
a, button, [role="button"], input, textarea, select {
transition: color var(--transition-interactive),
            background var(--transition-interactive),
            border-color var(--transition-interactive),
            box-shadow var(--transition-interactive);
}
button { cursor: pointer; background: none; border: none; }
:focus-visible {
outline: 2px solid var(--color-primary);
outline-offset: 3px;
border-radius: var(--radius-sm);
}

/* ---- NAVBAR ---- */
.site-nav {
background: var(--color-bg);
border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
position: sticky;
top: 0;
z-index: 100;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
background: oklch(from var(--color-bg) l c h / 0.92);
}
.site-nav .navbar-brand {
display: flex;
align-items: center;
gap: var(--space-2);
font-family: var(--font-display);
font-weight: 800;
font-size: var(--text-lg);
color: var(--color-text);
text-decoration: none;
letter-spacing: -0.02em;
}
.site-nav .navbar-brand span.accent { color: var(--color-primary); }
.nav-link-custom {
font-size: var(--text-sm);
font-weight: 500;
color: var(--color-text-muted);
text-decoration: none;
padding: var(--space-2) var(--space-3);
border-radius: var(--radius-md);
}

.img-logo {
  max-height: 60px;
}
.nav-link-custom:hover { color: var(--color-text); background: var(--color-surface-offset); }
.btn-nav-cta {
background: var(--color-primary);
color: var(--color-text-inverse);
font-size: var(--text-sm);
font-weight: 700;
padding: var(--space-2) var(--space-5);
border-radius: var(--radius-md);
border: none;
text-decoration: none;
letter-spacing: 0.01em;
}
.btn-nav-cta:hover { background: var(--color-primary-hover); color: var(--color-text-inverse); }

/* Theme toggle */
.theme-toggle {
color: var(--color-text-muted);
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
border-radius: var(--radius-md);
}
.theme-toggle:hover { background: var(--color-surface-offset); color: var(--color-text); }

/* ---- HERO ---- */
.hero-section {
min-height: 92vh;
display: flex;
align-items: center;
position: relative;
overflow: hidden;
background: var(--color-bg);
}
.hero-bg-image {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
z-index: 0;
}
.hero-overlay {
position: absolute;
inset: 0;
background: linear-gradient(
    105deg,
    oklch(0.08 0.01 60 / 0.88) 40%,
    oklch(0.08 0.01 60 / 0.45) 100%
);
z-index: 1;
}
.hero-content {
position: relative;
z-index: 2;
}
.hero-badge {
display: inline-flex;
align-items: center;
gap: var(--space-2);
background: oklch(from var(--color-primary) l c h / 0.15);
border: 1px solid oklch(from var(--color-primary) l c h / 0.35);
color: var(--color-primary);
font-size: var(--text-xs);
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.1em;
padding: var(--space-1) var(--space-3);
border-radius: var(--radius-full);
margin-bottom: var(--space-6);
}
.hero-title {
font-family: var(--font-display);
font-size: var(--text-3xl);
font-weight: 800;
color: #fff;
line-height: 1.0;
letter-spacing: -0.03em;
margin-bottom: var(--space-6);
}
.hero-title .line-accent { color: var(--color-primary); }
.hero-description {
font-size: var(--text-lg);
color: oklch(1 0 0 / 0.72);
max-width: 52ch;
margin-bottom: var(--space-8);
line-height: 1.55;
}
.hero-actions {
display: flex;
gap: var(--space-3);
flex-wrap: wrap;
}
.btn-primary-hero {
background: var(--color-primary);
color: #fff;
font-family: var(--font-display);
font-size: var(--text-base);
font-weight: 700;
padding: var(--space-4) var(--space-8);
border-radius: var(--radius-md);
border: none;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: var(--space-2);
}
.btn-primary-hero:hover { background: var(--color-primary-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-outline-hero {
background: transparent;
color: #fff;
font-size: var(--text-base);
font-weight: 600;
padding: var(--space-4) var(--space-8);
border-radius: var(--radius-md);
border: 1px solid oklch(1 0 0 / 0.3);
text-decoration: none;
display: inline-flex;
align-items: center;
gap: var(--space-2);
}
.btn-outline-hero:hover { background: oklch(1 0 0 / 0.1); color: #fff; border-color: oklch(1 0 0 / 0.5); }

/* Hero stats */
.hero-stats {
display: flex;
gap: var(--space-8);
margin-top: var(--space-12);
flex-wrap: wrap;
}
.hero-stat-item {}
.hero-stat-number {
font-family: var(--font-display);
font-size: var(--text-xl);
font-weight: 800;
color: var(--color-primary);
letter-spacing: -0.02em;
}
.hero-stat-label {
font-size: var(--text-xs);
color: oklch(1 0 0 / 0.55);
text-transform: uppercase;
letter-spacing: 0.08em;
font-weight: 600;
margin-top: var(--space-1);
}

/* ---- SECTION COMMON ---- */
.section-pad { padding-block: clamp(var(--space-12), 7vw, var(--space-24)); }
.section-label {
font-size: var(--text-xs);
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.12em;
color: var(--color-primary);
margin-bottom: var(--space-3);
}
.section-title {
font-family: var(--font-display);
font-size: var(--text-2xl);
font-weight: 800;
color: var(--color-text);
letter-spacing: -0.03em;
line-height: 1.05;
margin-bottom: var(--space-5);
}
.section-subtitle {
font-size: var(--text-base);
color: var(--color-text-muted);
max-width: 55ch;
line-height: 1.65;
}

/* ---- SERVICES ---- */
.services-section { background: var(--color-surface); }
.service-card {
background: var(--color-bg);
border: 1px solid oklch(from var(--color-text) l c h / 0.08);
border-radius: var(--radius-xl);
padding: var(--space-8);
height: 100%;
transition: transform var(--transition-interactive), box-shadow var(--transition-interactive), border-color var(--transition-interactive);
}
.service-card:hover {
transform: translateY(-3px);
box-shadow: var(--shadow-lg);
border-color: oklch(from var(--color-primary) l c h / 0.35);
}
.service-icon {
width: 48px;
height: 48px;
display: flex;
align-items: center;
justify-content: center;
background: oklch(from var(--color-primary) l c h / 0.1);
border-radius: var(--radius-lg);
color: var(--color-primary);
margin-bottom: var(--space-5);
}
.service-title {
font-family: var(--font-display);
font-size: var(--text-lg);
font-weight: 700;
color: var(--color-text);
letter-spacing: -0.02em;
margin-bottom: var(--space-3);
}
.service-desc {
font-size: var(--text-sm);
color: var(--color-text-muted);
line-height: 1.65;
}

/* ---- WHY CHOOSE US ---- */
.why-section { background: var(--color-bg); }
.why-image-wrapper {
position: relative;
border-radius: var(--radius-xl);
overflow: hidden;
box-shadow: var(--shadow-lg);
}
.why-image-wrapper img { width: 100%; height: 480px; object-fit: cover; display: block; }
.why-tag {
position: absolute;
bottom: var(--space-6);
left: var(--space-6);
background: var(--color-primary);
color: #fff;
font-family: var(--font-display);
font-size: var(--text-sm);
font-weight: 700;
padding: var(--space-2) var(--space-4);
border-radius: var(--radius-md);
}
.why-list { list-style: none; padding: 0; margin: 0; }
.why-list li {
display: flex;
gap: var(--space-4);
padding: var(--space-5) 0;
border-bottom: 1px solid var(--color-divider);
}
.why-list li:last-child { border-bottom: none; }
.why-list-icon {
width: 40px;
height: 40px;
min-width: 40px;
display: flex;
align-items: center;
justify-content: center;
background: oklch(from var(--color-primary) l c h / 0.1);
border-radius: var(--radius-md);
color: var(--color-primary);
margin-top: 2px;
}
.why-list-title {
font-family: var(--font-display);
font-size: var(--text-base);
font-weight: 700;
color: var(--color-text);
margin-bottom: var(--space-1);
}
.why-list-text {
font-size: var(--text-sm);
color: var(--color-text-muted);
line-height: 1.6;
}

/* ---- PROJECTS ---- */
.projects-section { background: var(--color-surface); }
.project-card {
border-radius: var(--radius-xl);
overflow: hidden;
position: relative;
aspect-ratio: 4/3;
display: block;
text-decoration: none;
}
.project-card img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover img { transform: scale(1.04); }
.project-card-overlay {
position: absolute;
inset: 0;
background: linear-gradient(to top, oklch(0.08 0.01 60 / 0.85) 0%, transparent 55%);
display: flex;
align-items: flex-end;
padding: var(--space-6);
}
.project-card-info {}
.project-card-cat {
font-size: var(--text-xs);
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--color-primary);
margin-bottom: var(--space-1);
}
.project-card-title {
font-family: var(--font-display);
font-size: var(--text-lg);
font-weight: 700;
color: #fff;
line-height: 1.2;
}

/* ---- CERTIFICATIONS ---- */
.certifications-section {
background: var(--color-bg);
border-top: 1px solid var(--color-divider);
}
.cert-item {
display: flex;
align-items: center;
gap: var(--space-3);
padding: var(--space-5);
border: 1px solid oklch(from var(--color-text) l c h / 0.08);
border-radius: var(--radius-lg);
background: var(--color-surface);
}
.cert-icon-wrap {
width: 42px;
height: 42px;
min-width: 42px;
display: flex;
align-items: center;
justify-content: center;
background: oklch(from var(--color-primary) l c h / 0.1);
border-radius: var(--radius-md);
color: var(--color-primary);
}
.cert-name {
font-family: var(--font-display);
font-size: var(--text-sm);
font-weight: 700;
color: var(--color-text);
}
.cert-body {
font-size: var(--text-xs);
color: var(--color-text-muted);
margin-top: 2px;
}

/* ---- TESTIMONIALS ---- */
.testimonials-section {
background: var(--color-dark);
color: #fff;
}
.testimonial-card {
background: oklch(1 0 0 / 0.05);
border: 1px solid oklch(1 0 0 / 0.1);
border-radius: var(--radius-xl);
padding: var(--space-8);
height: 100%;
}
.testimonial-quote {
font-size: var(--text-base);
color: oklch(1 0 0 / 0.82);
line-height: 1.65;
margin-bottom: var(--space-6);
}
.testimonial-stars { color: var(--color-primary); margin-bottom: var(--space-4); }
.testimonial-author {
display: flex;
align-items: center;
gap: var(--space-3);
}
.testimonial-avatar {
width: 42px;
height: 42px;
border-radius: var(--radius-full);
background: var(--color-primary);
display: flex;
align-items: center;
justify-content: center;
font-family: var(--font-display);
font-weight: 800;
font-size: var(--text-sm);
color: #fff;
}
.testimonial-name {
font-family: var(--font-display);
font-weight: 700;
font-size: var(--text-sm);
color: #fff;
}
.testimonial-company {
font-size: var(--text-xs);
color: oklch(1 0 0 / 0.5);
}
.testimonials-section .section-title { color: #fff; }

/* ---- CTA BAND ---- */
.cta-section {
background: var(--color-primary);
padding: clamp(var(--space-12), 6vw, var(--space-20)) 0;
}
.cta-title {
font-family: var(--font-display);
font-size: var(--text-2xl);
font-weight: 800;
color: #fff;
letter-spacing: -0.03em;
line-height: 1.05;
margin-bottom: var(--space-4);
}
.cta-subtitle {
font-size: var(--text-base);
color: oklch(1 0 0 / 0.75);
margin-bottom: var(--space-8);
max-width: 48ch;
}
.btn-cta-white {
background: #fff;
color: var(--color-primary);
font-family: var(--font-display);
font-size: var(--text-base);
font-weight: 800;
padding: var(--space-4) var(--space-8);
border-radius: var(--radius-md);
border: none;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: var(--space-2);
}
.btn-cta-white:hover { background: oklch(1 0 0 / 0.9); color: var(--color-primary); transform: translateY(-1px); }
.btn-cta-outline-white {
background: transparent;
color: #fff;
font-size: var(--text-base);
font-weight: 600;
padding: var(--space-4) var(--space-8);
border-radius: var(--radius-md);
border: 2px solid oklch(1 0 0 / 0.5);
text-decoration: none;
display: inline-flex;
align-items: center;
gap: var(--space-2);
}
.btn-cta-outline-white:hover { background: oklch(1 0 0 / 0.1); color: #fff; border-color: #fff; }
.cta-contact-info {
display: flex;
flex-direction: column;
gap: var(--space-3);
}
.cta-contact-row {
display: flex;
align-items: center;
gap: var(--space-3);
color: oklch(1 0 0 / 0.85);
font-size: var(--text-sm);
font-weight: 500;
}
.cta-contact-row a { color: inherit; text-decoration: none; }
.cta-contact-row a:hover { color: #fff; text-decoration: underline; }

/* ---- FOOTER ---- */
.site-footer {
background: #0d0d0c;
color: oklch(1 0 0 / 0.5);
padding: var(--space-12) 0 var(--space-8);
}
.footer-logo {
font-family: var(--font-display);
font-size: var(--text-lg);
font-weight: 800;
color: #fff;
letter-spacing: -0.02em;
margin-bottom: var(--space-3);
}
.footer-logo .accent { color: var(--color-primary); }
.footer-desc {
font-size: var(--text-sm);
color: oklch(1 0 0 / 0.4);
max-width: 38ch;
line-height: 1.65;
}
.footer-heading {
font-family: var(--font-display);
font-size: var(--text-sm);
font-weight: 700;
color: #fff;
text-transform: uppercase;
letter-spacing: 0.08em;
margin-bottom: var(--space-4);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: var(--space-2); }
.footer-links a {
font-size: var(--text-sm);
color: oklch(1 0 0 / 0.45);
text-decoration: none;
}
.footer-links a:hover { color: var(--color-primary); }
.footer-divider { border-color: oklch(1 0 0 / 0.1); margin: var(--space-8) 0 var(--space-6); }
.footer-bottom {
display: flex;
justify-content: space-between;
align-items: center;
gap: var(--space-4);
flex-wrap: wrap;
font-size: var(--text-xs);
color: oklch(1 0 0 / 0.3);
}

/* ---- SCROLL REVEAL ---- */
.reveal {
opacity: 0;
transform: translateY(24px);
transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
.reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 767px) {
.hero-actions { flex-direction: column; }
.hero-stats { gap: var(--space-6); }
.why-image-wrapper img { height: 260px; }
.info-panel{position:static;}
}

/* Banner Cookies */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--cookies-bg);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  padding: 25px;
  z-index: 999999;
  margin: 0 auto;
  animation: slideUp 0.5s ease-out;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.cookie-banner button {
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 120px;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex: 0 1 auto;
    margin-left: auto;
}

#accept-all-cookies {
  background: var(--color-primary);
  color: white;
}

#accept-all-cookies:hover {
  background: #e55a2b;
  transform: translateY(-2px);
}

#more-info-cookies {
  background: #f8f9fa;
  color: #333;
}

#more-info-cookies:hover {
  background: #e9ecef;
}

/* Versión Móvil */
@media (max-width: 768px) {
  .cookie-banner {
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 20px;
    border-radius: 15px;
  }
  
  .cookie-banner button {
    min-width: auto;
  }

  .cookie-actions {
    flex-direction: row;
  }
}
  
/* Animaciones */
@keyframes slideUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Ocultar banner cuando ya hay consentimiento */
.cookie-banner.hidden {
  display: none !important;
}

/* Formulario contacto */
.success-message {
  display: none;
  background: #E8F5E9;
  border: 1px solid var(--success);
  color: #2E7D32;
  padding: 1.5rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  animation: slideIn 0.3s ease-out;
}

.error-message {
  display: none;
  background: #FFEBEE;
  border: 1px solid var(--error);
  color: #C62828;
  padding: 1.5rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-form-section {
    padding: 3rem;
}

/* Form Fields */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--bs-gray-500);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--bs-blue);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Checkbox/Radio Group */
.checkbox-option,
.radio-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-option input[type="checkbox"],
.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-option label,
.radio-option label {
    margin: 0;
    font-weight: 400;
    cursor: pointer;
    font-size: 0.95rem;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  background: var(--color-primary);
  color: white;
  cursor: pointer;
  justify-content:center;
  margin-top:var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-md);
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.submit-btn:hover {
    background: var(--color-primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ---- CONTACT HEADER ---- */
.contact-header{
  background:var(--color-surface);
  border-bottom:1px solid var(--color-divider);
  padding:clamp(var(--space-10),5vw,var(--space-16)) 0 clamp(var(--space-8),4vw,var(--space-12));
}
.contact-title{font-family:var(--font-display);font-size:var(--text-2xl);font-weight:800;letter-spacing:-0.03em;color:var(--color-text);margin-bottom:var(--space-3);}
.contact-subtitle{font-size:var(--text-base);color:var(--color-text-muted);max-width:52ch;line-height:1.65;}

/* ---- CONTACT LAYOUT ---- */
.contact-section{padding:clamp(var(--space-10),6vw,var(--space-20)) 0;}

/* ---- FORM CARD ---- */
.form-card{
  background:var(--color-surface);
  border:1px solid oklch(from var(--color-text) l c h/0.08);
  border-radius:var(--radius-xl);
  padding:clamp(var(--space-8),4vw,var(--space-12));
  box-shadow:var(--shadow-md);
}

/* Form fields */
.field-group{margin-bottom:var(--space-5);}
.field-label{
  display:block;
  font-size:var(--text-sm);font-weight:600;
  color:var(--color-text);
  margin-bottom:var(--space-2);
  letter-spacing:0.01em;
}
.field-label .required{color:var(--color-primary);margin-left:2px;}
.field-hint{font-size:var(--text-xs);color:var(--color-text-muted);margin-top:var(--space-1);}
.field-error-msg{font-size:var(--text-xs);color:var(--color-error);margin-top:var(--space-1);display:none;}
.field-group.has-error .field-error-msg{display:block;}

.form-control-custom{
  width:100%;
  background:var(--color-bg);
  border:1.5px solid var(--color-border);
  border-radius:var(--radius-md);
  padding:var(--space-3) var(--space-4);
  font-family:var(--font-body);
  font-size:var(--text-sm);
  color:var(--color-text);
  outline:none;
  transition:border-color var(--transition-interactive),box-shadow var(--transition-interactive);
  appearance:none;
  -webkit-appearance:none;
}
.form-control-custom::placeholder{color:var(--color-text-faint);}
.form-control-custom:focus{
  border-color:var(--color-primary);
  box-shadow:0 0 0 3px oklch(from var(--color-primary) l c h/0.15);
}
.form-control-custom.error{
  border-color:var(--color-error);
  box-shadow:0 0 0 3px oklch(from var(--color-error) l c h/0.12);
}
textarea.form-control-custom{resize:vertical;min-height:130px;line-height:1.6;}
select.form-control-custom{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8880' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right var(--space-4) center;
  padding-right:var(--space-10);
}

/* ---- SUCCESS STATE ---- */
.success-state{
  display:none;
  text-align:center;
  padding:var(--space-10) var(--space-6);
}
.success-state.visible{display:block;}
.success-icon-wrap{
  width:72px;height:72px;
  border-radius:var(--radius-full);
  background:oklch(from var(--color-primary) l c h/0.12);
  display:flex;align-items:center;justify-content:center;
  margin:0 auto var(--space-6);
  animation:bounceIn 0.5s cubic-bezier(0.16,1,0.3,1);
}
@keyframes bounceIn{
  0%{transform:scale(0.5);opacity:0;}
  70%{transform:scale(1.1);}
  100%{transform:scale(1);opacity:1;}
}
.success-title{font-family:var(--font-display);font-size:var(--text-xl);font-weight:800;color:var(--color-text);letter-spacing:-0.02em;margin-bottom:var(--space-3);}
.success-subtitle{font-size:var(--text-base);color:var(--color-text-muted);max-width:42ch;margin:0 auto var(--space-6);line-height:1.65;}
.success-details{
  display:flex;flex-direction:column;gap:var(--space-3);
  background:var(--color-surface-2);border-radius:var(--radius-lg);
  padding:var(--space-5);max-width:380px;margin:0 auto var(--space-8);
  text-align:left;
}
.success-detail-row{display:flex;align-items:center;gap:var(--space-3);font-size:var(--text-sm);}
.success-detail-icon{color:var(--color-primary);}
.btn-back-home{
  background:var(--color-primary);color:#fff;
  font-family:var(--font-display);font-size:var(--text-base);font-weight:700;
  padding:var(--space-3) var(--space-8);border-radius:var(--radius-md);
  text-decoration:none;display:inline-flex;align-items:center;gap:var(--space-2);
}
.btn-back-home:hover{background:var(--color-primary-hover);color:#fff;}

/* ---- ERROR STATE ---- */
.error-state {
    display: none;
    text-align: center;
    padding: var(--space-10) var(--space-6);
}
.error-state.visible {
    display: block;
}
.error-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    background: oklch(from var(--color-error) l c h / 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    animation: bounceIn 0.5s cubic-bezier(0.16,1,0.3,1);
}
.error-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-3);
}
.error-subtitle {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    max-width: 42ch;
    margin: 0 auto var(--space-6);
    line-height: 1.65;
}
.btn-retry {
    background: var(--color-error);
    color: #fff;
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    padding: var(--space-3) var(--space-8);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    transition: background var(--transition-interactive);
}
.btn-retry:hover {
    background: oklch(from var(--color-error) calc(l - 0.05) c h);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* ---- SIDEBAR INFO ---- */
.info-panel{
  background:var(--color-surface);
  border:1px solid oklch(from var(--color-text) l c h/0.08);
  border-radius:var(--radius-xl);
  padding:var(--space-8);
  height:fit-content;
  position:sticky;
  top:calc(72px + var(--space-6));
}
.info-panel-title{font-family:var(--font-display);font-size:var(--text-lg);font-weight:800;color:var(--color-text);letter-spacing:-0.02em;margin-bottom:var(--space-6);}
.info-contact-list{list-style:none;padding:0;margin:0 0 var(--space-6);}
.info-contact-item{
  display:flex;align-items:flex-start;gap:var(--space-3);
  padding:var(--space-4) 0;
  border-bottom:1px solid var(--color-divider);
  font-size:var(--text-sm);
}
.info-contact-item:last-child{border-bottom:none;}
.info-contact-icon{color:var(--color-primary);min-width:18px;margin-top:1px;}
.info-contact-label{font-size:var(--text-xs);font-weight:700;text-transform:uppercase;letter-spacing:0.08em;color:var(--color-text-muted);margin-bottom:3px;}
.info-contact-value{font-weight:600;color:var(--color-text);}
.info-contact-value a{color:inherit;text-decoration:none;}
.info-contact-value a:hover{color:var(--color-primary);}

.info-badge{
  display:flex;align-items:center;gap:var(--space-3);
  background:oklch(from var(--color-primary) l c h/0.08);
  border:1px solid oklch(from var(--color-primary) l c h/0.2);
  border-radius:var(--radius-lg);
  padding:var(--space-4);
  margin-bottom:var(--space-4);
}
.info-badge-icon{color:var(--color-primary);}
.info-badge-text{font-size:var(--text-sm);font-weight:600;color:var(--color-text);}
.info-badge-sub{font-size:var(--text-xs);color:var(--color-text-muted);}

.info-cert-row{
  display:flex;flex-wrap:wrap;gap:var(--space-2);
  margin-top:var(--space-4);
  padding-top:var(--space-4);
  border-top:1px solid var(--color-divider);
}
.cert-pill{
  font-size:var(--text-xs);font-weight:700;
  padding:var(--space-1) var(--space-3);
  border-radius:var(--radius-full);
  background:var(--color-surface-offset);
  color:var(--color-text-muted);
  border:1px solid var(--color-border);
}

/* Privacy Check */
.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.privacy-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px; /* alinea con la primera línea del texto */
  cursor: pointer;
  accent-color: var(--color-primary);
}

.privacy-check label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
  cursor: pointer;
}

.privacy-check label a {
  color: var(--color-primary);
}

/* Paginas servicios */
.service-main-img {
  max-height:500px;
}

.service-hero-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}
.service-hero-title .line-accent { color: var(--color-primary); }

.service-hero-description {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 48ch;
  line-height: 1.55;
  margin-bottom: var(--space-8);
}

/* ---- SERVICE INTRO SECTION ---- */
    .intro-section { background: var(--color-bg); }
    .intro-image-wrap { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
    .intro-image-wrap img { width: 100%; height: 460px; object-fit: cover; }
    .intro-img-tag {
      position: absolute; bottom: var(--space-6); left: var(--space-6);
      background: var(--color-primary); color: #fff;
      font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700;
      padding: var(--space-2) var(--space-4); border-radius: var(--radius-md);
    }
    .intro-features { list-style: none; padding: 0; margin: 0 0 var(--space-8); display: flex; flex-direction: column; gap: var(--space-4); }
    .intro-feature-item { display: flex; align-items: flex-start; gap: var(--space-4); padding: var(--space-4); background: var(--color-surface); border-radius: var(--radius-lg); border: 1px solid oklch(from var(--color-text) l c h / 0.07); }
    .intro-feature-icon { width: 40px; height: 40px; min-width: 40px; display: flex; align-items: center; justify-content: center; background: oklch(from var(--color-primary) l c h / 0.1); border-radius: var(--radius-md); color: var(--color-primary); margin-top: 2px; }
    .intro-feature-title { font-family: var(--font-display); font-size: var(--text-base); font-weight: 700; color: var(--color-text); margin-bottom: 2px; }
    .intro-feature-text { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }

/* Dropdown menú - tema oscuro */
[data-theme="dark"] .dropdown-menu {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .dropdown-item {
  color: var(--color-text-muted);
  background-color: transparent;
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
  background-color: var(--color-surface-offset);
  color: var(--color-text);
}

[data-theme="dark"] .nav-link.dropdown-toggle {
  color: var(--color-text-muted);
}

[data-theme="dark"] .nav-link.dropdown-toggle:hover {
  color: var(--color-text);
}