@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: 'DM Sans', Helvetica, Arial, sans-serif !important;
    background-color: #F5F2EE !important;
    color: #1A1A18 !important;
    line-height: 1.7 !important;
    font-size: 16px !important;
    overflow-x: hidden !important;
    width: 100% !important;
}

::selection { background: #8B7355; color: #FFFFFF; }
img { max-width: 100% !important; height: auto !important; }
a { color: #8B7355; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #6E5A42; }

#sidebar, #sidebar_content, #zc-sidebar,
a[href*="switchView"], a[href*="print"], a[href*="sitemap"], a[href*="login"],
img[src*="printer"], img[src*="logo.gif"],
.c, div.c { display: none !important; height: 0 !important; overflow: hidden !important; }

/* ─── NAV ─── */
#zc-header {
    position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important;
    z-index: 9999 !important; width: 100% !important;
    background: rgba(245,242,238,0.92) !important;
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26,26,24,0.1) !important;
}
.zc-nav-inner {
    max-width: 1200px !important; margin: 0 auto !important;
    padding: 0 32px !important; height: 68px !important;
    display: flex !important; align-items: center !important; justify-content: space-between !important;
}
.zc-logo, .zc-footer-logo {
    font-family: 'DM Sans', Helvetica, sans-serif !important;
    font-size: 1rem !important; font-weight: 600 !important;
    letter-spacing: 0.18em !important; text-transform: uppercase !important;
    color: #1A1A18 !important; text-decoration: none !important;
    white-space: nowrap !important; flex-shrink: 0 !important;
}
.zc-logo span, .zc-footer-logo span { color: #8B7355 !important; }

#zc-nav { display: flex !important; align-items: center !important; }
#zc-nav ul { display: flex !important; gap: 28px !important; padding: 0 !important; margin: 0 !important; list-style: none !important; }
#zc-nav li { display: inline-block !important; list-style: none !important; }
#zc-nav a {
    font-family: 'DM Sans', sans-serif !important; font-size: 0.78rem !important;
    font-weight: 500 !important; letter-spacing: 0.06em !important;
    text-transform: uppercase !important; color: #6B6860 !important;
    text-decoration: none !important; padding: 6px 0 !important;
    position: relative !important; transition: color 0.3s ease !important; white-space: nowrap !important;
}
#zc-nav a::after {
    content: '' !important; position: absolute !important; bottom: 0 !important; left: 0 !important;
    width: 0 !important; height: 1px !important; background: #8B7355 !important; transition: width 0.3s ease !important;
}
#zc-nav a:hover { color: #1A1A18 !important; }
#zc-nav a:hover::after { width: 100% !important; }

.zc-cta-btn {
    font-family: 'DM Sans', sans-serif !important; font-size: 0.72rem !important;
    font-weight: 500 !important; letter-spacing: 0.1em !important;
    text-transform: uppercase !important; color: #FFFFFF !important;
    background: #1A1A18 !important; padding: 10px 22px !important;
    text-decoration: none !important; transition: all 0.3s ease !important;
    display: inline-block !important; white-space: nowrap !important; flex-shrink: 0 !important;
}
.zc-cta-btn:hover { background: #8B7355 !important; color: #FFFFFF !important; }

/* ─── CONTENIDO ─── */
#zc-main { padding-top: 68px !important; width: 100% !important; overflow-x: hidden !important; }
.zc-content-wrap { max-width: 1200px !important; margin: 0 auto !important; width: 100% !important; }
#content { width: 100% !important; float: none !important; margin: 0 !important; padding: 0 !important; }

/* ─── TIPOGRAFÍA ─── */
#zc-main h1, #content h1, h1 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: clamp(1.8rem, 4.5vw, 3rem) !important; font-weight: 300 !important;
    line-height: 1.2 !important; color: #1A1A18 !important;
    margin-bottom: 20px !important; padding: 40px 32px 0 32px !important;
    text-align: left !important;
}
#zc-main h2, #content h2, h2 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: clamp(1.2rem, 2.5vw, 1.7rem) !important; font-weight: 400 !important;
    line-height: 1.25 !important; color: #1A1A18 !important;
    margin-bottom: 12px !important; text-align: left !important;
}
#zc-main p, #content p {
    font-family: 'DM Sans', sans-serif !important; font-size: 0.92rem !important;
    font-weight: 300 !important; line-height: 1.8 !important; color: #6B6860 !important;
    margin-bottom: 14px !important; padding-left: 32px !important; padding-right: 32px !important;
    text-align: left !important;
}

/* ─── HERO ─── */
#header, #header_wrapper, .emotionheader, [id*="header_wrapper"] {
    position: relative !important; width: 100% !important;
    max-height: 65vh !important; min-height: 350px !important; overflow: hidden !important;
}
#header img, #header_wrapper img, .emotionheader img {
    width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important;
}

/* ─── TARJETAS DE PROYECTO ─── */
.cc_teaser, [class*="teaser"], .teaserbox {
    position: relative !important; overflow: hidden !important; margin-bottom: 20px !important;
    background: #FFFFFF !important; border: 1px solid rgba(26,26,24,0.1) !important; transition: all 0.4s ease !important;
}
.cc_teaser:hover, [class*="teaser"]:hover {
    border-color: #8B7355 !important; box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
}
.cc_teaser img, [class*="teaser"] img { width: 100% !important; display: block !important; transition: transform 0.6s ease !important; }
.cc_teaser:hover img, [class*="teaser"]:hover img { transform: scale(1.03) !important; }

/* ─── COLUMNAS DE SERVICIOS (SIEMPRE CENTRADAS) ─── */
.cc_content_col,
[class*="content_col"] {
    text-align: center !important;
    padding: 20px 16px !important;
}
.cc_content_col *,
[class*="content_col"] * {
    text-align: center !important;
}
.cc_content_col h2,
[class*="content_col"] h2,
.cc_content_col h3,
[class*="content_col"] h3 {
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.cc_content_col p,
[class*="content_col"] p {
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.cc_content_col img,
[class*="content_col"] img {
    max-width: 64px !important;
    margin: 0 auto 12px !important;
    display: block !important;
    opacity: 0.85 !important;
}

/* ─── FORMULARIO ─── */
form { text-align: left !important; }
form label, form .label, form span.label, form td, form th, form div { text-align: left !important; }
form input[type="text"], form input[type="email"], form input[type="tel"],
form select, form textarea {
    font-family: 'DM Sans', sans-serif !important; font-size: 0.9rem !important;
    width: 100% !important; padding: 12px 8px !important;
    border: none !important; border-bottom: 1px solid rgba(26,26,24,0.2) !important;
    background: transparent !important; color: #1A1A18 !important;
    border-radius: 0 !important; -webkit-appearance: none !important;
    transition: border-color 0.3s ease !important; text-align: left !important;
}
form input:focus, form select:focus, form textarea:focus { border-bottom-color: #8B7355 !important; outline: none !important; }
form textarea { min-height: 80px !important; resize: vertical !important; }
form label, form .label {
    font-family: 'DM Sans', sans-serif !important; font-size: 0.7rem !important;
    font-weight: 500 !important; letter-spacing: 0.08em !important;
    text-transform: uppercase !important; color: #6B6860 !important;
    display: block !important; text-align: left !important;
}
.captcha, [class*="captcha"], [class*="Captcha"], [id*="captcha"] {
    opacity: 0.45 !important; transform: scale(0.8) !important; transform-origin: left center !important;
}
form input[type="submit"], form button[type="submit"], input.button, .button {
    font-family: 'DM Sans', sans-serif !important; font-size: 0.75rem !important;
    font-weight: 500 !important; letter-spacing: 0.12em !important;
    text-transform: uppercase !important; background: #1A1A18 !important;
    color: #FFFFFF !important; padding: 14px 36px !important;
    border: none !important; border-radius: 0 !important;
    cursor: pointer !important; transition: background 0.3s ease !important;
}
form input[type="submit"]:hover, input.button:hover, .button:hover { background: #8B7355 !important; }

/* ─── FOOTER ─── */
#zc-footer { background: #1A1A18 !important; color: #F5F2EE !important; width: 100% !important; }
.zc-footer-inner { max-width: 1200px !important; margin: 0 auto !important; padding: 48px 32px !important; }
.zc-footer-brand { margin-bottom: 24px !important; padding-bottom: 20px !important; border-bottom: 1px solid rgba(245,242,238,0.1) !important; }
.zc-footer-tagline { font-size: 0.8rem !important; color: rgba(245,242,238,0.4) !important; margin-top: 6px !important; }
.zc-footer-content, .zc-footer-content p, .zc-footer-content a,
#zc-footer p, #zc-footer a, #footer, #footer p, #footer a {
    font-family: 'DM Sans', sans-serif !important; font-size: 0.82rem !important;
    color: rgba(245,242,238,0.5) !important; line-height: 1.8 !important;
}
#zc-footer a:hover { color: #F5F2EE !important; }
.zc-footer-bottom { padding-top: 20px !important; border-top: 1px solid rgba(245,242,238,0.08) !important; margin-top: 20px !important; }
.zc-footer-bottom p { font-size: 0.7rem !important; color: rgba(245,242,238,0.25) !important; }
img[src*="facebook"], img[src*="instagram"] { width: 36px !important; height: 36px !important; opacity: 0.6 !important; transition: opacity 0.3s !important; }
img[src*="facebook"]:hover, img[src*="instagram"]:hover { opacity: 1 !important; }

/* ─── TABLET ─── */
@media screen and (max-width: 900px) {
    .zc-nav-inner { padding: 0 20px !important; height: 60px !important; }
    #zc-nav ul { gap: 14px !important; }
    #zc-nav a { font-size: 0.68rem !important; }
    .zc-cta-btn { padding: 8px 14px !important; font-size: 0.63rem !important; }
}

/* ─── MÓVIL ─── */
@media screen and (max-width: 768px) {
    .zc-nav-inner { padding: 0 12px !important; height: 52px !important; }
    #zc-main { padding-top: 52px !important; }
    .zc-cta-btn { padding: 8px 14px !important; font-size: 0.65rem !important; }
    #zc-main h1, #content h1, h1 { font-size: 1.5rem !important; padding: 20px 16px 0 16px !important; }
    #zc-main h2, #content h2, h2 { font-size: 1.1rem !important; }
    #zc-main p, #content p { font-size: 0.85rem !important; padding-left: 16px !important; padding-right: 16px !important; }
    #header, #header_wrapper, .emotionheader { max-height: 40vh !important; min-height: 200px !important; }
    .zc-footer-inner { padding: 28px 16px !important; }
    /* Servicios siguen centrados en móvil */
    .cc_content_col, [class*="content_col"] { text-align: center !important; }
    .cc_content_col *, [class*="content_col"] * { text-align: center !important; }
    .cc_content_col h2, [class*="content_col"] h2 { text-align: center !important; padding: 0 !important; }
    .cc_content_col p, [class*="content_col"] p { text-align: center !important; padding: 0 8px !important; }
}

@media screen and (max-width: 480px) {
    .zc-logo { font-size: 0.8rem !important; letter-spacing: 0.1em !important; }
    #zc-main h1 { font-size: 1.3rem !important; }
    .zc-cta-btn { padding: 7px 12px !important; font-size: 0.6rem !important; }
    .cc_content_col img, [class*="content_col"] img { max-width: 48px !important; }
}