/*
Theme Name: Fiestas de México (Treville Child)
Theme URI: https://www.fiestasdemexico.com/
Description: Child theme de Treville con portada personalizada para Fiestas de México.
Author: Fiestas de México
Template: treville
Version: 1.5
*/

/* Todo lo de abajo está bajo .fdm-home para no afectar el resto del sitio (entradas, archivos, buscador, etc.) que sigue usando Treville normal. */

.fdm-home{
  --pink:#E0006C; --pink-dark:#B70058; --teal:#009C8C; --teal-dark:#00786C;
  --amber:#F5A623; --cream:#FFF8F1; --ink:#1D1533; --ink-soft:#5B546B; --line:#EFE7DC;
  --shadow:0 10px 30px rgba(29,21,51,0.08);
  font-family:'Inter',sans-serif; color:var(--ink); background:var(--cream); margin:0;
}
.fdm-home *{box-sizing:border-box;}
.fdm-home h1,.fdm-home h2,.fdm-home h3{font-family:'Fraunces',serif;margin:0;}
.fdm-home a{text-decoration:none;color:inherit;}
.fdm-home img{max-width:100%;display:block;}
.fdm-home .fdm-wrap{max-width:1240px !important;width:100% !important;margin:0 auto !important;padding:0 24px !important;box-sizing:border-box !important;float:none !important;display:block !important;}
.fdm-home button{font-family:inherit;cursor:pointer;}

.fdm-home header.site{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50;}
.fdm-home .header-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 0;gap:20px;}
.fdm-home .logo{font-family:'Fraunces',serif;font-weight:700;font-size:26px;color:var(--pink);display:flex;align-items:baseline;gap:6px;flex-shrink:0;}
.fdm-home .logo .de{font-style:italic;font-weight:500;font-size:16px;color:var(--amber);}
.fdm-home .logo .mex{color:var(--teal);}
.fdm-home nav.main{display:flex;gap:26px;align-items:center;flex-wrap:wrap;}
.fdm-home nav.main ul{list-style:none;display:flex;gap:26px;margin:0;padding:0;flex-wrap:wrap;}
.fdm-home nav.main a{font-weight:600;font-size:14.5px;color:var(--ink);}
.fdm-home nav.main a:hover{color:var(--pink);}
.fdm-home .btn-buscar{background:var(--pink);color:#fff;padding:11px 22px;border-radius:30px;font-weight:700;font-size:14.5px;border:none;display:flex;align-items:center;gap:8px;flex-shrink:0;}
.fdm-home .btn-buscar:hover{background:var(--pink-dark);color:#fff;}

.fdm-home form.header-search{display:flex !important;align-items:center;gap:8px;background:var(--pink);border-radius:30px;padding:10px 18px;flex-shrink:0 !important;flex-grow:0 !important;width:230px;max-width:230px;box-sizing:border-box;transition:width .2s ease;}
.fdm-home form.header-search:focus-within{width:280px;}
.fdm-home form.header-search .ic{font-size:15px;flex-shrink:0;color:#fff;}
.fdm-home form.header-search input{border:none !important;background:transparent !important;outline:none;color:#fff !important;font-family:inherit;font-size:13.5px;width:100%;padding:0 !important;margin:0 !important;}
.fdm-home form.header-search input::placeholder{color:rgba(255,255,255,.85);}

.fdm-home .hero{position:relative;overflow:hidden;padding:56px 0 44px;background:linear-gradient(180deg,#FFF3E8 0%, #FFF8F1 55%, var(--cream) 100%);}
.fdm-home .papel{display:flex;justify-content:center;gap:6px;margin-bottom:26px;}
.fdm-home .papel span{width:46px;height:38px;clip-path:polygon(0 0,100% 0,50% 100%);opacity:0.9;}
.fdm-home .hero-copy{text-align:center;max-width:760px;margin:0 auto;padding:0 20px;}
.fdm-home .hero-copy h1{font-size:44px;line-height:1.15;font-weight:600;color:var(--ink);}
.fdm-home .hero-copy p{margin-top:14px;font-size:17px;color:var(--ink-soft);line-height:1.6;}
.fdm-home .search-card{max-width:920px;margin:32px auto 0;background:#fff;border-radius:18px;box-shadow:var(--shadow);padding:14px;display:flex;gap:10px;align-items:stretch;flex-wrap:wrap;}
.fdm-home .field{flex:1;min-width:170px;display:flex;align-items:center;gap:10px;padding:8px 14px;border-radius:12px;}
.fdm-home .field + .field{border-left:1px solid var(--line);}
.fdm-home .field .ic{font-size:20px;}
.fdm-home .field label{display:block;font-weight:700;font-size:14px;color:var(--ink);}
.fdm-home .field select,.fdm-home .field input{border:none;background:transparent;font-family:inherit;font-size:13.5px;color:var(--ink-soft);width:100%;outline:none;appearance:none;padding:2px 0;}
.fdm-home .search-card .btn-buscar{white-space:nowrap;padding:14px 26px;}

.fdm-home .quicklinks{padding:26px 0 8px;}
.fdm-home .quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;}
.fdm-home .quick-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px 20px;display:flex;align-items:center;gap:14px;box-shadow:var(--shadow);transition:transform .15s ease;}
.fdm-home .quick-card:hover{transform:translateY(-3px);}
.fdm-home .quick-ic{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:20px;color:#fff;flex-shrink:0;}
.fdm-home .quick-card h3{font-family:'Inter';font-size:15px;font-weight:700;}
.fdm-home .quick-card p{margin:2px 0 0;font-size:12.5px;color:var(--ink-soft);}
.fdm-home .quick-arrow{margin-left:auto;color:var(--ink-soft);font-size:18px;}

.fdm-home section{padding:40px 0;}
.fdm-home .section-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:20px;}
.fdm-home .section-head h2{font-size:24px;font-weight:600;}
.fdm-home .section-head a{font-size:13.5px;font-weight:700;color:var(--pink);}

.fdm-home .destacadas-layout{display:grid;grid-template-columns:2.6fr 1.1fr;gap:26px;align-items:start;}
.fdm-home .event-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;}
.fdm-home .event-card{background:#fff;border-radius:16px;overflow:hidden;border:1px solid var(--line);box-shadow:var(--shadow);}
.fdm-home .event-photo{position:relative;height:150px;background-size:cover;background-position:center;background-color:#eee;}
.fdm-home .date-badge{position:absolute;top:10px;left:10px;background:#fff;border-radius:10px;padding:6px 9px;text-align:center;line-height:1.1;box-shadow:0 4px 10px rgba(0,0,0,.12);}
.fdm-home .date-badge .d{font-size:15px;font-weight:800;color:var(--pink);}
.fdm-home .date-badge .m{font-size:9.5px;font-weight:700;letter-spacing:.5px;color:var(--ink-soft);}
.fdm-home .event-body{padding:14px 16px 16px;}
.fdm-home .event-body h3{font-family:'Inter';font-size:15px;font-weight:700;line-height:1.3;}
.fdm-home .event-loc{margin-top:6px;font-size:12.5px;color:var(--ink-soft);}
.fdm-home .event-tag{margin-top:8px;font-size:11.5px;font-weight:700;display:inline-block;}

.fdm-home .estado-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:var(--shadow);}
.fdm-home .estado-card h2{font-size:19px;margin-bottom:14px;}
.fdm-home .mx-map{width:100%;height:auto;border-radius:12px;background:linear-gradient(135deg,#FDEFE0,#FDE3EA);padding:14px;box-sizing:border-box;}
.fdm-home .mx-map path{fill:#E7D9E9;stroke:#fff;stroke-width:1.5;transition:fill .15s ease;}
.fdm-home .mx-map a.mx-state:hover path{fill:var(--teal);}
.fdm-home .mx-map a.mx-state-activo path{fill:var(--pink);}
.fdm-home .mx-map a.mx-state-activo:hover path{fill:var(--pink-dark);}
.fdm-home .estado-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;}
.fdm-home .pill{font-size:12.5px;font-weight:700;padding:7px 13px;border-radius:20px;border:1.5px solid;}
.fdm-home .pill.p1{color:var(--teal-dark);border-color:#BEE8E1;background:#EAFAF7;}
.fdm-home .pill.p2{color:var(--pink-dark);border-color:#F6C9DE;background:#FEEEF5;}
.fdm-home .pill.p3{color:#B2760E;border-color:#F5DFAF;background:#FDF5E4;}
.fdm-home .ver-todos{display:block;margin-top:14px;font-weight:700;color:var(--pink);font-size:13.5px;}

.fdm-home .cat-mes-layout{display:grid;grid-template-columns:1fr 2.05fr;gap:26px;}
.fdm-home .cat-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;}
.fdm-home .cat-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px 8px;text-align:center;box-shadow:var(--shadow);}
.fdm-home .cat-ic{width:42px;height:42px;border-radius:50%;margin:0 auto 10px;display:flex;align-items:center;justify-content:center;font-size:19px;}
.fdm-home .cat-card p{font-size:12.5px;font-weight:700;margin:0;}

.fdm-home .mes-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
.fdm-home .mes-card{background:#fff;border-radius:16px;overflow:hidden;border:1px solid var(--line);box-shadow:var(--shadow);}
.fdm-home .mes-photo{height:120px;background-size:cover;background-position:center;position:relative;background-color:#eee;}
.fdm-home .mes-body{padding:12px 14px 14px;}
.fdm-home .mes-body h3{font-family:'Inter';font-size:13.5px;font-weight:700;line-height:1.3;}
.fdm-home .mes-loc{margin-top:5px;font-size:11.5px;color:var(--ink-soft);}
.fdm-home .mes-tag{margin-top:6px;font-size:11px;font-weight:700;}

.fdm-home footer.site-footer{background:#241A38;color:#EFE9F8;padding:50px 0 26px;margin-top:20px;}
.fdm-home .foot-grid{display:grid;grid-template-columns:1.7fr 1fr 1fr 1.1fr;gap:28px;}
.fdm-home .foot-logo{font-family:'Fraunces',serif;font-weight:700;font-size:22px;}
.fdm-home .foot-logo .de{font-style:italic;color:var(--amber);font-weight:500;font-size:14px;}
.fdm-home .foot-logo .mex{color:#5FE0CE;}
.fdm-home footer.site-footer p{color:#B7ACD1;font-size:13.5px;line-height:1.6;margin-top:10px;}
.fdm-home footer.site-footer h4{font-size:14px;margin-bottom:12px;color:#fff;}
.fdm-home footer.site-footer ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:9px;}
.fdm-home footer.site-footer ul a{font-size:13.5px;color:#C9C0E0;}
.fdm-home footer.site-footer ul a:hover{color:#fff;}
.fdm-home .socials{display:flex;gap:10px;margin-top:12px;}
.fdm-home .socials a{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;font-size:15px;}
.fdm-home .made{margin-top:16px;font-size:12.5px;color:#B7ACD1;display:flex;align-items:center;gap:6px;}

/* ---------- ENTRADA INDIVIDUAL ---------- */
.fdm-home .post-hero{position:relative !important;height:380px !important;background-size:cover !important;background-position:center !important;background-color:#241A38 !important;overflow:hidden;display:block !important;}
.fdm-home .post-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,14,36,.35) 0%,rgba(20,14,36,.65) 55%,rgba(20,14,36,.92) 100%);z-index:1;}
.fdm-home .post-hero-inner{position:relative !important;z-index:3 !important;max-width:1240px;margin:0 auto;padding:0 24px;height:100%;display:flex !important;flex-direction:column;justify-content:flex-end;padding-bottom:30px;box-sizing:border-box;}
.fdm-home .post-breadcrumb{position:relative;z-index:3;color:#F3E9FF !important;font-size:13px;font-weight:600;margin-bottom:12px;text-shadow:0 1px 6px rgba(0,0,0,.5);}
.fdm-home .post-breadcrumb a{color:#F3E9FF !important;opacity:.9;}
.fdm-home .post-breadcrumb a:hover{opacity:1;text-decoration:underline;}
.fdm-home .post-hero h1{position:relative !important;z-index:3 !important;color:#ffffff !important;font-size:36px;line-height:1.2;font-weight:600 !important;max-width:820px;margin:0 !important;text-shadow:0 2px 16px rgba(0,0,0,.6),0 1px 3px rgba(0,0,0,.8);}
.fdm-home .post-badges{position:relative;z-index:3;display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;}
.fdm-home .post-badge{background:#fff;color:var(--ink) !important;border-radius:20px;padding:7px 14px;font-size:12.5px;font-weight:700;display:inline-flex;align-items:center;gap:6px;box-shadow:0 4px 10px rgba(0,0,0,.2);}
.fdm-home .post-badge.solid{background:var(--pink);color:#fff !important;}

.fdm-home .post-layout{display:grid !important;grid-template-columns:2.1fr 1fr !important;gap:32px;align-items:start;padding:40px 0 60px;width:100%;box-sizing:border-box;}
.fdm-home .post-layout > *{min-width:0;}
.fdm-home .post-content{background:#fff;border:1px solid var(--line);border-radius:18px;padding:34px 38px;box-shadow:var(--shadow);float:none !important;width:auto !important;}
.fdm-home .post-content p{font-size:16px;line-height:1.75;color:var(--ink);margin:0 0 18px;}
.fdm-home .post-content h2{font-size:23px;font-weight:600;margin:30px 0 14px;}
.fdm-home .post-content h3{font-size:19px;font-weight:600;margin:24px 0 10px;font-family:'Inter';}
.fdm-home .post-content ul,.fdm-home .post-content ol{padding-left:22px;margin:0 0 18px;color:var(--ink);line-height:1.7;}
.fdm-home .post-content img{border-radius:14px;margin:18px 0;}
.fdm-home .post-content a{color:var(--pink-dark);text-decoration:underline;}
.fdm-home .post-content blockquote{border-left:4px solid var(--pink);margin:20px 0;padding:6px 20px;color:var(--ink-soft);font-style:italic;background:#FFF8F1;border-radius:0 10px 10px 0;}

.fdm-home .sidebar-stack{display:flex !important;flex-direction:column;gap:20px;position:sticky;top:90px;float:none !important;width:auto !important;}
.fdm-home .sidebar-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:var(--shadow);}
.fdm-home .sidebar-card h4{font-size:15px;font-weight:700;margin-bottom:14px;font-family:'Inter';}
.fdm-home .sidebar-row{display:flex;align-items:flex-start;gap:10px;font-size:13.5px;color:var(--ink-soft);padding:9px 0;border-bottom:1px solid var(--line);}
.fdm-home .sidebar-row:last-child{border-bottom:none;padding-bottom:0;}
.fdm-home .sidebar-row .ic{font-size:16px;flex-shrink:0;}
.fdm-home .sidebar-row b{color:var(--ink);display:block;font-size:13.5px;}
.fdm-home .related-item{display:flex;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);}
.fdm-home .related-item:last-child{border-bottom:none;padding-bottom:0;}
.fdm-home .related-thumb{width:56px;height:56px;border-radius:10px;background-size:cover;background-position:center;background-color:#eee;flex-shrink:0;}
.fdm-home .related-item h5{font-family:'Inter';font-size:12.5px;font-weight:700;line-height:1.35;margin:0;}
.fdm-home .related-item span{font-size:11px;color:var(--ink-soft);}
.fdm-home .share-row{display:flex;gap:8px;}
.fdm-home .share-row a{width:36px;height:36px;border-radius:50%;background:var(--cream);display:flex;align-items:center;justify-content:center;font-size:15px;}

.fdm-home .post-comments{max-width:100%;margin-top:10px;}
.fdm-home .post-comments .comment-form input,
.fdm-home .post-comments .comment-form textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:10px 14px;font-family:inherit;font-size:13.5px;margin-bottom:10px;}
.fdm-home .post-comments .comment-form textarea{min-height:110px;}
.fdm-home .post-comments .comment-form input[type="submit"]{width:auto;background:var(--pink);color:#fff;border:none;font-weight:700;padding:11px 24px;cursor:pointer;}

@media(max-width:980px){
  .fdm-home .post-layout{grid-template-columns:1fr;}
  .fdm-home .post-content{padding:24px;}
  .fdm-home .sidebar-stack{position:static;}
}
@media(max-width:640px){
  .fdm-home .post-hero{height:260px;}
  .fdm-home .post-hero h1{font-size:25px;}
}

/* ---------- ZONAS DE ANUNCIOS (AdSense u otros, vía Apariencia > Widgets) ---------- */
.fdm-home .ad-zone{margin:36px 0;text-align:center;}
.fdm-home .ad-zone .ad-label{font-size:10.5px;letter-spacing:.6px;text-transform:uppercase;color:var(--ink-soft);margin-bottom:8px;opacity:.7;}
.fdm-home .ad-zone .widget{max-width:100%;overflow-x:auto;}

/* Oculta la barra de búsqueda por defecto de Treville (aparece vía wp_body_open,
   no es la nuestra — la nuestra usa la clase .search-card, distinta). */
.fdm-home form.search-form,
.fdm-home .widget_search,
.fdm-home .wp-block-search{display:none !important;}

.fdm-home .burger{display:none;background:none;border:none;font-size:26px;color:var(--ink);}

@media(max-width:980px){
  .fdm-home nav.main{display:none;}
  .fdm-home .burger{display:block;}
  .fdm-home .destacadas-layout,.fdm-home .cat-mes-layout{grid-template-columns:1fr;}
  .fdm-home .quick-grid{grid-template-columns:repeat(2,1fr);}
  .fdm-home .foot-grid{grid-template-columns:1fr 1fr;}
  .fdm-home .cat-grid{grid-template-columns:repeat(3,1fr);}
  .fdm-home .post-layout{grid-template-columns:1fr !important;}
}
@media(max-width:640px){
  .fdm-home .hero-copy h1{font-size:32px;}
  .fdm-home .event-grid,.fdm-home .mes-grid,.fdm-home .cat-grid{grid-template-columns:1fr 1fr;}
  .fdm-home .quick-grid{grid-template-columns:1fr;}
  .fdm-home .foot-grid{grid-template-columns:1fr;}
  .fdm-home .field + .field{border-left:none;border-top:1px solid var(--line);}
  .fdm-home .search-card{flex-direction:column;}
  .fdm-home form.header-search{width:150px;max-width:150px;padding:8px 14px;}
  .fdm-home form.header-search:focus-within{width:180px;}
}
