/*
Theme Name: Cacao Films
Theme URI: https://cacaofilms.com
Author: Cacao Films
Description: Tema a medida para Cacao Films – Productora audiovisual.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: cacaofilms
*/

:root{
  --cf-brown:#4e4541;
  --cf-green:#4a4e33;
  --cf-orange:#e3a24a;
  --cf-orange-2:#e9a033;
  --cf-light:#e9e9e8;
  --cf-beige:#ded7bf;
  --cf-sand:#d8c597;
  --cf-grey:#746c68;
  --cf-ink:#151515;
  --cf-white:#f3f2ee;
  --cf-wrap:1160px;
  --cf-header-h:170px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Rubik",system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--cf-ink);background:var(--cf-light);font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;display:flex;flex-direction:column;min-height:100vh}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
.cf-wrap{width:100%;max-width:var(--cf-wrap);margin:0 auto;padding:0 24px}
main{flex:1;display:flex;flex-direction:column}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}

/* ---------- Header ---------- */
.cf-header{background:var(--cf-brown);color:var(--cf-white);position:relative;z-index:50;height:var(--cf-header-h)}
.cf-header .cf-wrap{height:100%;display:flex;align-items:center;justify-content:space-between;position:relative}
.cf-burger{position:absolute;left:24px;top:22px;width:30px;height:24px;background:none;border:0;padding:0;cursor:pointer;display:flex;flex-direction:column;justify-content:space-between}
.cf-burger span{display:block;height:4px;background:var(--cf-white);border-radius:1px}
.cf-header-burger-holder{position:absolute;left:24px;top:20px}
.cf-logo{display:block;margin-left:70px;padding-top:28px}
.cf-logo img{width:176px;height:auto}
.cf-logo small{display:block;font-size:11.5px;letter-spacing:.21em;margin-top:6px;color:var(--cf-white);font-weight:400;text-decoration:none}
.cf-logo{text-decoration:none}
.cf-header-right{display:flex;flex-direction:column;align-items:flex-end;align-self:stretch;justify-content:flex-start;padding-top:26px}
.cf-btn{display:inline-block;background:var(--cf-orange);color:var(--cf-ink);text-decoration:none;font-size:16px;line-height:1;padding:7px 19px 6px;border-radius:5px;transition:background .2s,transform .2s}
.cf-btn:hover{background:#f0b464}
.cf-nav{margin-top:28px;margin-right:96px}
.cf-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:27px}
.cf-nav a{position:relative;text-decoration:none;color:var(--cf-white);font-size:17px;letter-spacing:.01em;text-transform:uppercase;padding:14px 0 6px;display:block}
.cf-nav a::before{content:"";position:absolute;left:50%;top:-11px;width:24px;height:16px;transform:translateX(-50%);opacity:0;transition:opacity .2s;background:
 linear-gradient(var(--cf-orange),var(--cf-orange)) 0 0/8px 8px no-repeat,
 linear-gradient(var(--cf-orange),var(--cf-orange)) 16px 0/8px 8px no-repeat,
 linear-gradient(var(--cf-orange),var(--cf-orange)) 8px 8px/8px 8px no-repeat}
.cf-nav .current-menu-item>a::before,.cf-nav .current_page_item>a::before,.cf-nav .current-menu-ancestor>a::before,.cf-nav a.is-active::before,.cf-nav a:hover::before{opacity:1}
.cf-nav a:hover::before{opacity:.6}
.cf-nav .current-menu-item>a:hover::before,.cf-nav a.is-active:hover::before{opacity:1}

/* Off-canvas menu */
.cf-drawer{position:fixed;inset:0;background:rgba(30,26,24,.96);z-index:100;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}
.cf-drawer.is-open{opacity:1;visibility:visible}
.cf-drawer ul{list-style:none;margin:0;padding:0;text-align:center}
.cf-drawer a{display:block;color:var(--cf-white);text-decoration:none;font-size:clamp(28px,5vw,46px);font-weight:500;padding:8px 0;text-transform:uppercase;letter-spacing:.04em}
.cf-drawer a:hover{color:var(--cf-orange)}
.cf-drawer-close{position:absolute;top:22px;left:24px;background:none;border:0;color:var(--cf-white);font-size:44px;line-height:1;cursor:pointer}
.cf-drawer img{width:150px;margin-bottom:28px}

/* ---------- Footer ---------- */
.cf-footer{background:var(--cf-green);color:var(--cf-white);height:105px}
.cf-footer .cf-wrap{height:100%;display:flex;align-items:center;justify-content:space-between;padding-left:96px;padding-right:0}
.cf-footer p{margin:0;font-size:16px;font-weight:300;margin-top:-6px}
.cf-social{display:flex;gap:22px;align-items:center;margin-right:-36px}
.cf-social a{display:flex;color:var(--cf-white);opacity:1;transition:opacity .2s}
.cf-social a:hover{opacity:.7}
.cf-social svg{height:26px;width:auto;fill:currentColor}

/* ---------- Shared ---------- */
.cf-title{font-size:44px;font-weight:500;text-align:center;margin:0 0 0;line-height:1.15;letter-spacing:.005em}
.cf-title::after{content:"";display:block;width:90px;height:4px;background:var(--cf-orange);margin:12px auto 0}
.cf-lead{font-weight:500;font-size:18px;text-align:center;max-width:1120px;margin:22px auto 0;line-height:1.5}
.cf-mark{position:relative;padding-left:0}
.cf-pix{display:inline-block;width:16px;height:24px;flex:0 0 auto;background:
 linear-gradient(var(--cf-orange),var(--cf-orange)) 0 0/8px 8px no-repeat,
 linear-gradient(#f0b867,#f0b867) 8px 8px/8px 8px no-repeat,
 linear-gradient(var(--cf-orange),var(--cf-orange)) 0 16px/8px 8px no-repeat}
.cf-pix--lg{width:32px;height:48px;background-size:16px 16px,16px 16px,16px 16px;background-position:0 0,16px 16px,0 32px}

/* ---------- Hero ---------- */
.cf-hero{position:relative;flex:1;min-height:calc(100vh - var(--cf-header-h) - 105px);min-height:max(560px,calc(100svh - var(--cf-header-h) - 105px));overflow:hidden;color:#fff;display:flex;align-items:center;justify-content:center;text-align:center;background:#222}
.cf-hero-slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity 1.2s ease;transform:scale(1.04)}
.cf-hero-slide.is-active{opacity:1;animation:cfZoom 9s ease-out forwards}
@keyframes cfZoom{from{transform:scale(1.04)}to{transform:scale(1)}}
.cf-hero-slide video{width:100%;height:100%;object-fit:cover}
.cf-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(rgba(0,0,0,.08),rgba(0,0,0,.22));pointer-events:none}
.cf-hero-content{position:relative;z-index:2;max-width:1180px;padding:60px 24px 0}
.cf-hero h1{font-size:clamp(28px,3.4vw,45px);font-weight:500;line-height:1.2;margin:0;text-shadow:0 2px 14px rgba(0,0,0,.45)}
.cf-hero-cta{display:inline-block;margin-top:56px;color:#fff;text-decoration:none;font-weight:500;font-size:21px;letter-spacing:.01em;text-shadow:0 2px 10px rgba(0,0,0,.5)}
.cf-hero-cta::after{content:"";display:block;width:90px;height:4px;background:var(--cf-orange);margin:10px auto 0;transition:width .25s}
.cf-hero-cta:hover::after{width:150px}
.cf-dots{display:flex;gap:22px;justify-content:center;margin-top:40px}
.cf-dots button{width:22px;height:22px;border:0;padding:0;background:#ecebea;cursor:pointer;transition:background .2s}
.cf-dots button.is-active{background:var(--cf-orange)}

/* ---------- Nosotros ---------- */
.cf-about{flex:1;display:flex;align-items:center;padding:90px 0;background:var(--cf-light)}
.cf-about .cf-wrap{display:grid;grid-template-columns:514px 1fr;gap:78px;align-items:center;max-width:1180px}
.cf-about-text{text-align:center;max-width:520px;margin:0 auto}
.cf-about-text .cf-title{margin-bottom:34px}
.cf-about-text .cf-body{font-weight:500;font-size:20.5px;line-height:1.3}
.cf-about-text .cf-body p{margin:0 0 1em}
.cf-gallery{position:relative;padding-top:40px}
.cf-gallery-stage{position:relative;aspect-ratio:514/343;overflow:hidden}
.cf-gallery-stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .8s}
.cf-gallery-stage img.is-active{opacity:1}
.cf-gallery .cf-dots{margin-top:18px;gap:22px}
.cf-gallery .cf-dots button{background:#ddd2b4}
.cf-gallery .cf-dots button.is-active{background:var(--cf-orange)}

/* ---------- Servicios ---------- */
.cf-services-head{padding:44px 0 6px;background:var(--cf-light)}
.cf-services-head .cf-title{font-size:44px}
.cf-service{padding:70px 0 90px;background:var(--cf-light)}
.cf-service:nth-of-type(even){background:var(--cf-beige)}
.cf-service .cf-wrap{display:grid;grid-template-columns:1fr 1fr;gap:76px;align-items:center;max-width:1180px}
.cf-service:nth-of-type(odd) .cf-wrap{align-items:start}
.cf-service-text h2{display:flex;gap:18px;align-items:flex-start;font-size:44px;font-weight:500;line-height:1.2;margin:0 0 50px -52px}
.cf-service-text h2 .cf-pix{margin-top:12px}
.cf-service-text .cf-body{font-size:21px;font-weight:500;line-height:1.27;max-width:510px}
.cf-service-text .cf-body p{margin:0 0 1em}
.cf-service-media{aspect-ratio:514/343;overflow:hidden;background:#cfc8b6}
.cf-service:nth-of-type(odd) .cf-service-media{margin-top:44px}
.cf-service-media img,.cf-service-media iframe{width:100%;height:100%;object-fit:cover;border:0}
.cf-service:nth-of-type(even) .cf-service-media{order:-1}

.cf-process{background:var(--cf-light);padding:60px 0 140px;text-align:center}
.cf-process .cf-lead{font-size:21px;max-width:1140px}
.cf-steps{display:flex;justify-content:center;align-items:center;gap:0;margin-top:110px}
.cf-step{position:relative;width:302px;height:246px;display:flex;align-items:center;justify-content:center;padding:20px;font-size:26px;font-weight:500;line-height:1.2;text-align:center}
.cf-step:nth-child(1){background:var(--cf-beige);color:var(--cf-ink)}
.cf-step:nth-child(3){background:var(--cf-orange);color:var(--cf-ink)}
.cf-step:nth-child(5){background:var(--cf-green);color:#fff}
.cf-step-num{position:absolute;top:18px;right:22px;height:62px;width:auto}
.cf-step-num svg{height:62px;width:auto}
.cf-arrow{width:122px;display:flex;justify-content:center}
.cf-arrow svg{width:58px;height:auto}

/* ---------- Proyectos ---------- */
.cf-projects{flex:1;background:var(--cf-sand);padding:68px 0 84px}
.cf-projects .cf-lead{font-size:21px;margin-top:34px}
.cf-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px 38px;margin-top:24px;max-width:1240px;margin-left:auto;margin-right:auto}
.cf-card{position:relative;display:block;aspect-ratio:796/400;overflow:hidden;text-decoration:none;color:#fff;background:#333}
.cf-card img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease,filter .4s}
.cf-card:hover img{transform:scale(1.06);filter:brightness(.8)}
.cf-card-label{position:absolute;left:16px;top:20px;display:flex;align-items:center;gap:8px;font-size:14px;font-weight:500;text-shadow:0 1px 6px rgba(0,0,0,.55)}
.cf-card-label.is-dark{color:var(--cf-ink);text-shadow:none}
.cf-card-label .cf-pix{width:16px;height:24px}
.cf-card::after{content:"Ver proyecto";position:absolute;left:50%;bottom:20px;transform:translate(-50%,10px);opacity:0;transition:.3s;background:var(--cf-orange);color:var(--cf-ink);font-size:14px;padding:6px 14px;border-radius:4px}
.cf-card:hover::after{opacity:1;transform:translate(-50%,0)}

.cf-project{flex:1;background:var(--cf-sand);padding:68px 0 120px}
.cf-project .cf-wrap{max-width:1210px}
.cf-back{margin:22px 0 24px 4px;font-size:16.5px;padding:8px 19px 7px}
.cf-video{position:relative;aspect-ratio:16/10.7;background:#000;overflow:hidden}
.cf-video iframe,.cf-video video,.cf-video img{position:absolute;inset:0;width:100%;height:100%;border:0;object-fit:cover}
.cf-project-info{display:grid;grid-template-columns:1fr 470px;gap:130px;margin-top:84px}
.cf-project-info h2{display:flex;align-items:center;gap:20px;font-size:26px;font-weight:500;margin:0 0 44px}
.cf-project-info .cf-pix--lg{width:32px;height:48px}
.cf-project-desc{font-size:21px;font-weight:500;line-height:1.27;text-align:justify}
.cf-project-desc p{margin:0 0 1em}
.cf-ficha h3{font-size:26px;font-weight:500;margin:6px 0 26px}
.cf-ficha dl{display:grid;grid-template-columns:1fr 1fr;gap:20px 30px;margin:0}
.cf-ficha dl div{font-size:16.5px;line-height:1.3}
.cf-ficha dt{font-weight:600}
.cf-ficha dd{margin:0;font-weight:400}

/* ---------- Contacto ---------- */
.cf-contact{flex:1;display:grid;grid-template-columns:40.25% 1fr;min-height:calc(100vh - var(--cf-header-h) - 105px)}
.cf-contact-media{background-size:cover;background-position:center;min-height:360px}
.cf-contact-panel{background:var(--cf-grey);color:#fff;position:relative;display:flex;align-items:center;justify-content:center;text-align:center;padding:80px 24px 120px}
.cf-contact-panel .cf-title{color:#fff;margin-bottom:34px}
.cf-contact-inner{max-width:520px;margin:-120px 0 0 -100px}
.cf-contact-panel .cf-body{font-weight:500;font-size:21px;line-height:1.27}
.cf-contact-panel .cf-body p{margin:0}
.cf-contact-data{margin-top:30px;font-size:21px;font-weight:500;line-height:1.27}
.cf-contact-data a{text-decoration:none;color:#fff;display:block}
.cf-contact-data a:hover{color:var(--cf-orange)}
.cf-squares{position:absolute;right:213px;bottom:103px;width:148px;height:148px;background:
 linear-gradient(var(--cf-orange),var(--cf-orange)) 100px 0/48px 48px no-repeat,
 linear-gradient(var(--cf-orange),var(--cf-orange)) 0 100px/48px 48px no-repeat,
 linear-gradient(var(--cf-orange),var(--cf-orange)) 100px 100px/48px 48px no-repeat}
.cf-form{margin-top:34px;text-align:left;display:grid;gap:10px}
.cf-form input,.cf-form textarea{width:100%;font:inherit;font-size:16px;padding:10px 12px;border:0;border-radius:4px;background:rgba(255,255,255,.92);color:var(--cf-ink)}
.cf-form button{justify-self:center;border:0;cursor:pointer;font:inherit}
.cf-notice{margin-top:18px;padding:10px 14px;border-radius:4px;background:rgba(0,0,0,.2)}

/* Generic page */
.cf-page{flex:1;padding:70px 0 100px}
.cf-page .cf-body{max-width:820px;margin:40px auto 0;font-size:18px}

/* Reveal animation */
.cf-reveal{opacity:0;transform:translateY(24px);transition:opacity .8s ease,transform .8s ease}
.cf-reveal.is-in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.cf-reveal{opacity:1;transform:none}.cf-hero-slide.is-active{animation:none}}

/* ---------- Responsive ---------- */
@media (max-width:1200px){
  .cf-nav{margin-right:0}
  .cf-footer .cf-wrap{padding-left:24px}
  .cf-social{margin-right:0}
  .cf-service-text h2{margin-left:0}
  .cf-project-info{grid-template-columns:1fr 420px;gap:60px}
  .cf-contact-inner{margin:0}
  .cf-squares{right:60px}
}
@media (max-width:980px){
  :root{--cf-header-h:120px}
  .cf-logo{margin-left:56px;padding-top:10px}
  .cf-logo img{width:140px}
  .cf-logo small{font-size:9.5px}
  .cf-nav{display:none}
  .cf-header-right{padding-top:0;justify-content:center}
  .cf-about .cf-wrap,.cf-service .cf-wrap{grid-template-columns:1fr;gap:36px}
  .cf-service:nth-of-type(even) .cf-service-media{order:0}
  .cf-service:nth-of-type(odd) .cf-service-media{margin-top:0}
  .cf-service-text h2{font-size:32px;margin-bottom:24px}
  .cf-service-text .cf-body{max-width:none;font-size:18px}
  .cf-service{padding:56px 0}
  .cf-grid{grid-template-columns:repeat(2,1fr);gap:20px}
  .cf-project-info{grid-template-columns:1fr;gap:40px;margin-top:48px}
  .cf-steps{flex-direction:column;margin-top:50px}
  .cf-arrow{transform:rotate(90deg);height:90px;align-items:center}
  .cf-step{width:100%;max-width:340px;height:200px}
  .cf-contact{grid-template-columns:1fr}
  .cf-contact-panel{padding:70px 24px 150px}
  .cf-squares{right:24px;bottom:24px;transform:scale(.6);transform-origin:bottom right}
  .cf-about-text .cf-body{font-size:18px}
}
@media (max-width:620px){
  .cf-burger{top:16px}
  .cf-logo{margin-left:54px}
  .cf-logo img{width:118px}
  .cf-btn{font-size:14px;padding:7px 14px 6px}
  .cf-title,.cf-services-head .cf-title{font-size:34px}
  .cf-lead,.cf-projects .cf-lead,.cf-process .cf-lead{font-size:17px}
  .cf-grid{grid-template-columns:1fr}
  .cf-footer{height:auto;padding:22px 0}
  .cf-footer .cf-wrap{flex-direction:column;gap:14px}
  .cf-social svg{height:22px}
  .cf-project-desc{font-size:18px;text-align:left}
  .cf-ficha dl{grid-template-columns:1fr 1fr}
  .cf-hero-cta{margin-top:36px}
  .cf-about{padding:50px 0}
  .cf-gallery{padding-top:0}
}


/* Ajustes contacto en pantallas bajas */
.cf-contact{min-height:max(660px,calc(100vh - var(--cf-header-h) - 105px))}
.cf-contact-inner{margin-top:-60px}
@media (max-width:1200px){.cf-contact-inner{margin-top:0}}

/* ---------- v1.1: cabecera en una fila ---------- */
.cf-logo{padding-top:0}
.cf-header-right{flex-direction:row;align-items:center;align-self:center;padding-top:0;gap:34px}
.cf-nav{margin:0}
.cf-nav a{padding:6px 0}
.cf-nav a::before{top:-20px}
.cf-btn--header{font-size:16px;padding:9px 22px 8px}
@media (max-width:980px){.cf-logo{padding-top:0}.cf-header-right{gap:0}}

/* ---------- v1.1: botones flotantes ---------- */
.cf-float{position:fixed;right:22px;bottom:22px;z-index:90;display:flex;flex-direction:column;align-items:center;gap:14px}
.cf-totop{width:46px;height:46px;border:0;border-radius:4px;background:var(--cf-orange);color:var(--cf-ink);cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(0,0,0,.25);opacity:0;visibility:hidden;transform:translateY(12px);transition:opacity .3s,transform .3s,visibility .3s,background .2s}
.cf-totop.is-visible{opacity:1;visibility:visible;transform:none}
.cf-totop:hover{background:#f0b464}
.cf-totop svg{width:22px;height:22px;fill:currentColor}
.cf-wa{position:relative;width:60px;height:60px;border-radius:50%;background:#25d366;color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(0,0,0,.3);transition:transform .2s}
.cf-wa:hover{transform:scale(1.07)}
.cf-wa svg{width:34px;height:34px;fill:currentColor}
.cf-wa::before{content:"";position:absolute;inset:0;border-radius:50%;background:#25d366;opacity:.5;animation:cfPulse 2.4s ease-out infinite;z-index:-1}
@keyframes cfPulse{0%{transform:scale(1);opacity:.5}100%{transform:scale(1.6);opacity:0}}
.cf-wa-tip{position:absolute;right:72px;top:50%;transform:translateY(-50%) translateX(6px);background:#fff;color:var(--cf-ink);font-size:14px;font-weight:500;white-space:nowrap;padding:7px 12px;border-radius:6px;box-shadow:0 4px 14px rgba(0,0,0,.2);opacity:0;pointer-events:none;transition:.25s}
.cf-wa:hover .cf-wa-tip{opacity:1;transform:translateY(-50%)}
@media (max-width:620px){.cf-float{right:14px;bottom:14px}.cf-wa{width:54px;height:54px}.cf-wa svg{width:30px;height:30px}.cf-wa-tip{display:none}}
@media (prefers-reduced-motion:reduce){.cf-wa::before{animation:none}}

/* v1.3: video en servicios */
.cf-service-media video{width:100%;height:100%;object-fit:cover;display:block}