@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&family=Nunito:wght@400;600;700;800;900&display=swap');

/* SP Page Builder limita el módulo Raw HTML a su contenedor. */
.page-content.builder-container:has(#cr-ciclo-castillo) { overflow: visible !important; }
.sppb-section:has(#cr-ciclo-castillo),
.sppb-section:has(#cr-ciclo-castillo) > .sppb-row-container,
.sppb-section:has(#cr-ciclo-castillo) .sppb-row,
.sppb-section:has(#cr-ciclo-castillo) .sppb-row-column,
.sppb-section:has(#cr-ciclo-castillo) .sppb-column,
.sppb-section:has(#cr-ciclo-castillo) .sppb-column-addons,
.sppb-section:has(#cr-ciclo-castillo) .sppb-addon-wrapper,
.sppb-section:has(#cr-ciclo-castillo) .sppb-addon,
.sppb-section:has(#cr-ciclo-castillo) .sppb-addon-content { max-width: none !important; overflow: visible !important; }
.sppb-section:has(#cr-ciclo-castillo) { padding-left: 0 !important; padding-right: 0 !important; }
.sppb-section:has(#cr-ciclo-castillo) > .sppb-row-container { width: 100% !important; padding: 0 !important; }
.sppb-section:has(#cr-ciclo-castillo) .sppb-row { margin-left: 0 !important; margin-right: 0 !important; }
.sppb-section:has(#cr-ciclo-castillo) .sppb-row-column,
.sppb-section:has(#cr-ciclo-castillo) .sppb-addon-content { padding-left: 0 !important; padding-right: 0 !important; }

#cr-ciclo-castillo, #cr-ciclo-castillo * { box-sizing: border-box; }
#cr-ciclo-castillo {
  --cr-ink:#072e29; --cr-green:#006e58; --cr-dark:#07352d; --cr-yellow:#ffbd08; --cr-brown:#8c4a1c;
  position: relative; left: 50%; width: 100vw; max-width: none; margin-left: -50vw;
  isolation: isolate; overflow: hidden; color: var(--cr-ink); font: 600 16px/1.55 'Nunito',sans-serif;
  background: radial-gradient(circle at 1% 3%,rgba(255,189,8,.16),transparent 18%),radial-gradient(circle at 98% 23%,rgba(0,110,88,.13),transparent 19%),linear-gradient(145deg,#fffaf0,#f8f4e9 48%,#f3f7ee);
  padding: clamp(64px,6vw,110px) clamp(18px,3.2vw,72px) clamp(42px,4vw,70px);
}
#cr-ciclo-castillo::before,#cr-ciclo-castillo::after { content:""; position:absolute; pointer-events:none; z-index:-1; border:2px solid rgba(0,110,88,.12); border-radius:50%; transform:rotate(-28deg); }
#cr-ciclo-castillo::before { width:260px;height:430px;left:-155px;top:190px; }
#cr-ciclo-castillo::after { width:280px;height:390px;right:-175px;top:820px;border-color:rgba(255,189,8,.22); }
#cr-ciclo-castillo .cr-ciclo__decoration { position:absolute;pointer-events:none;font-size:clamp(130px,15vw,280px);line-height:1;opacity:.09; }
#cr-ciclo-castillo .cr-ciclo__decoration--left { top:70px;left:-40px;color:var(--cr-green);transform:rotate(-20deg); }
#cr-ciclo-castillo .cr-ciclo__decoration--right { top:270px;right:-20px;color:#cf9f12;transform:rotate(20deg); }
#cr-ciclo-castillo .cr-ciclo__header { position:relative;text-align:center;max-width:960px;margin:0 auto clamp(38px,4vw,66px); }
#cr-ciclo-castillo .cr-ciclo__eyebrow { margin:0 0 12px;color:var(--cr-green);font:700 clamp(24px,2.2vw,34px)/1 'Caveat',cursive; }
#cr-ciclo-castillo .cr-ciclo__eyebrow span { color:#c49a1d;font:800 14px 'Nunito',sans-serif;vertical-align:middle;margin:0 8px; }
#cr-ciclo-castillo .cr-ciclo__header h2 { margin:0; font:900 clamp(38px,4vw,66px)/1.06 'Nunito',sans-serif;letter-spacing:-.04em;color:var(--cr-ink); }
#cr-ciclo-castillo .cr-ciclo__header h2 em { color:#b47b00;font-style:normal; }
#cr-ciclo-castillo .cr-ciclo__lead { max-width:810px;margin:20px auto 0;color:#35544e;font-size:clamp(16px,1.1vw,19px);line-height:1.7; }
#cr-ciclo-castillo .cr-ciclo__header-actions { display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:16px;margin-top:26px; }
#cr-ciclo-castillo .cr-ciclo__header-note { color:#746047;font:700 20px 'Caveat',cursive; }
#cr-ciclo-castillo .cr-ciclo__button { display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:51px;padding:12px 23px;border-radius:999px;text-decoration:none!important;font:900 15px/1.15 'Nunito',sans-serif;transition:transform .2s,box-shadow .2s,background .2s;white-space:normal;text-align:center; }
#cr-ciclo-castillo .cr-ciclo__button:hover,#cr-ciclo-castillo .cr-ciclo__detail-toggle:hover { transform:translateY(-3px);box-shadow:0 10px 22px rgba(0,46,36,.16); }
#cr-ciclo-castillo .cr-ciclo__button:focus-visible,#cr-ciclo-castillo .cr-ciclo__detail-toggle:focus-visible { outline:3px solid #cf7300;outline-offset:4px; }
#cr-ciclo-castillo .cr-ciclo__button--primary { background:var(--cr-green);color:#fff;box-shadow:0 8px 20px rgba(0,110,88,.16); }
#cr-ciclo-castillo .cr-ciclo__button--yellow { background:var(--cr-yellow);color:var(--cr-ink); }
#cr-ciclo-castillo .cr-ciclo__button--outline { border:2px solid rgba(255,255,255,.8);color:#fff; }
#cr-ciclo-castillo .cr-ciclo__grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(15px,1.6vw,28px);align-items:stretch;width:100%;margin:0 auto;scroll-margin-top:28px; }
#cr-ciclo-castillo .cr-ciclo__card { --card-bg:#fff0d8; --accent:#c59a21; --button-bg:#083d32; --button-color:#fff; display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid rgba(7,53,45,.13);border-radius:26px;background:var(--card-bg);box-shadow:0 15px 35px rgba(9,50,40,.1);transition:transform .25s,box-shadow .25s; }
#cr-ciclo-castillo .cr-ciclo__card:hover { transform:translateY(-5px);box-shadow:0 22px 40px rgba(9,50,40,.17); }
#cr-ciclo-castillo .cr-ciclo__card--crema { --card-bg:#fff0d8;--accent:#d39a0a; }
#cr-ciclo-castillo .cr-ciclo__card--salvia { --card-bg:#dfebdb;--accent:#007965; }
#cr-ciclo-castillo .cr-ciclo__card--miel { --card-bg:#ffe3a1;--accent:#af610d; }
#cr-ciclo-castillo .cr-ciclo__card--verde { --card-bg:#0c463a;--accent:#ffbd08;--button-bg:#ffbd08;--button-color:#08342c;color:#fff; }
#cr-ciclo-castillo .cr-ciclo__photo-wrap { position:relative;height:clamp(275px,24vw,390px);overflow:hidden;background:#315642; }
#cr-ciclo-castillo .cr-ciclo__photo-wrap::after { content:"";position:absolute;inset:55% 0 0;background:linear-gradient(transparent,rgba(0,30,24,.55));pointer-events:none; }
#cr-ciclo-castillo .cr-ciclo__photo { display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center;transition:transform .45s; }
#cr-ciclo-castillo .cr-ciclo__card:hover .cr-ciclo__photo { transform:scale(1.035); }
#cr-ciclo-castillo .cr-ciclo__number { position:absolute;z-index:1;top:17px;left:17px;padding:7px 12px;border-radius:999px;background:var(--cr-yellow);color:var(--cr-ink);font-weight:900;font-size:12px;letter-spacing:.08em; }
#cr-ciclo-castillo .cr-ciclo__image-caption { position:absolute;z-index:1;bottom:18px;left:21px;color:#fff;font:700 24px 'Caveat',cursive;text-shadow:0 2px 8px #18332d; }
#cr-ciclo-castillo .cr-ciclo__card-body { position:relative;display:flex;flex-direction:column;flex:1;padding:clamp(21px,1.6vw,31px); }
#cr-ciclo-castillo .cr-ciclo__card-body::before { content:"";position:absolute;top:0;left:0;right:0;height:5px;background:var(--accent); }
#cr-ciclo-castillo .cr-ciclo__card-top { display:flex;align-items:center;gap:11px;margin-bottom:16px; }
#cr-ciclo-castillo .cr-ciclo__icon { flex:0 0 auto;display:grid;place-items:center;width:41px;height:41px;border-radius:50%;background:var(--accent);color:#fff;font-size:22px;line-height:1;box-shadow:0 3px 0 rgba(0,0,0,.12); }
#cr-ciclo-castillo .cr-ciclo__card--verde .cr-ciclo__icon { color:var(--cr-ink); }
#cr-ciclo-castillo .cr-ciclo__stage { font:900 11px/1.35 'Nunito',sans-serif;text-transform:uppercase;letter-spacing:.12em;color:#386158; }
#cr-ciclo-castillo .cr-ciclo__card--verde .cr-ciclo__stage { color:#d4e8d9; }
#cr-ciclo-castillo .cr-ciclo__card h3 { margin:0;color:inherit;font:900 clamp(25px,1.7vw,32px)/1.1 'Nunito',sans-serif;letter-spacing:-.025em; }
#cr-ciclo-castillo .cr-ciclo__subtitle { margin:9px 0 0;color:#9b5b15;font:800 clamp(20px,1.35vw,25px)/1.16 'Caveat',cursive; }
#cr-ciclo-castillo .cr-ciclo__card--verde .cr-ciclo__subtitle { color:#ffd770; }
#cr-ciclo-castillo .cr-ciclo__text { margin:17px 0 0;color:#294c43;font-size:15px;line-height:1.65; }
#cr-ciclo-castillo .cr-ciclo__card--verde .cr-ciclo__text { color:#e4f1e7; }
#cr-ciclo-castillo .cr-ciclo__tags { display:flex;flex-wrap:wrap;gap:7px;margin:20px 0 18px; }
#cr-ciclo-castillo .cr-ciclo__tags span { border:1px solid rgba(0,89,72,.18);border-radius:999px;padding:6px 10px;color:#155b4b;background:rgba(255,255,255,.4);font:800 11px/1.2 'Nunito',sans-serif; }
#cr-ciclo-castillo .cr-ciclo__card--verde .cr-ciclo__tags span { background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.25);color:#fff; }
#cr-ciclo-castillo .cr-ciclo__detail-toggle { display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:49px;margin-top:auto;padding:10px 16px;border:0;border-radius:14px;background:var(--button-bg);color:var(--button-color);font:900 14px 'Nunito',sans-serif;cursor:pointer;transition:transform .2s,box-shadow .2s; }
#cr-ciclo-castillo .cr-ciclo__detail-toggle span { font-size:20px;line-height:1; }
#cr-ciclo-castillo .cr-ciclo__detail-toggle[aria-expanded="true"] span { transform:rotate(90deg); }
#cr-ciclo-castillo .cr-ciclo__detail { margin-top:15px;padding:15px;border-left:3px solid var(--accent);border-radius:0 12px 12px 0;background:rgba(255,255,255,.36); }
#cr-ciclo-castillo .cr-ciclo__detail[hidden] { display:none; }
#cr-ciclo-castillo .cr-ciclo__detail p { margin:0;font-size:14px;line-height:1.6; }
#cr-ciclo-castillo .cr-ciclo__card--verde .cr-ciclo__detail { background:rgba(255,255,255,.12); }
@media (min-width:1200px) and (max-width:1599px) { #cr-ciclo-castillo .cr-ciclo__grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (min-width:1024px) and (max-width:1199px) { #cr-ciclo-castillo .cr-ciclo__grid { grid-template-columns:repeat(2,minmax(0,1fr)); } #cr-ciclo-castillo .cr-ciclo__photo-wrap { height:380px; } }
@media (min-width:890px) and (max-width:1023px) { #cr-ciclo-castillo .cr-ciclo__grid { grid-template-columns:repeat(2,minmax(0,1fr)); } #cr-ciclo-castillo .cr-ciclo__photo-wrap { height:350px; } }
@media (min-width:768px) and (max-width:889px) { #cr-ciclo-castillo .cr-ciclo__grid { grid-template-columns:repeat(2,minmax(0,1fr)); } #cr-ciclo-castillo .cr-ciclo__photo-wrap { height:320px; } }
@media (min-width:670px) and (max-width:767px) { #cr-ciclo-castillo .cr-ciclo__grid { grid-template-columns:repeat(2,minmax(0,1fr)); } #cr-ciclo-castillo .cr-ciclo__photo-wrap { height:260px; } #cr-ciclo-castillo .cr-ciclo__card-body { padding:19px; } }
@media (min-width:576px) and (max-width:669px) { #cr-ciclo-castillo .cr-ciclo__grid { grid-template-columns:1fr;max-width:520px; } #cr-ciclo-castillo .cr-ciclo__photo-wrap { height:380px; } }
@media (min-width:501px) and (max-width:575px) { #cr-ciclo-castillo .cr-ciclo__grid { grid-template-columns:1fr;max-width:500px; } #cr-ciclo-castillo .cr-ciclo__photo-wrap { height:355px; } }
@media (max-width:500px) { #cr-ciclo-castillo { padding-top:62px; } #cr-ciclo-castillo .cr-ciclo__grid { grid-template-columns:1fr; } #cr-ciclo-castillo .cr-ciclo__photo-wrap { height:clamp(285px,80vw,390px); } #cr-ciclo-castillo .cr-ciclo__header h2 { font-size:clamp(34px,9vw,44px); } #cr-ciclo-castillo .cr-ciclo__header-note { width:100%; } }
@media (min-width:1600px) and (max-width:1659px) { #cr-ciclo-castillo .cr-ciclo__photo-wrap { height:360px; } }
@media (min-width:1660px) and (max-width:1919px) { #cr-ciclo-castillo .cr-ciclo__photo-wrap { height:390px; } }
@media (min-width:1920px) { #cr-ciclo-castillo .cr-ciclo__photo-wrap { height:420px; } #cr-ciclo-castillo .cr-ciclo__card-body { padding:32px; } }
@media (prefers-reduced-motion:reduce) { #cr-ciclo-castillo .cr-ciclo__card,#cr-ciclo-castillo .cr-ciclo__photo,#cr-ciclo-castillo .cr-ciclo__button,#cr-ciclo-castillo .cr-ciclo__detail-toggle { transition:none; } }
