/*
Theme Name: Twenty Twenty-Three Child
Theme URI: https://example.com
Description: Tema hijo de Twenty Twenty-Three
Author: Tu Nombre
Author URI: https://example.com
Template: twentytwentythree
Version: 1.0.0
Text Domain: twentytwentythree-child
*/

/* ===============================
   FUENTES
================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap');

/* ===============================
   VARIABLES
================================ */
:root {
  --bg-main: #ffffff;
  --text-main: #1f1f1f;
  --text-soft: #6a6a6a;
  --accent: #b8a892;
  --border: #e5e5e5;
  --red-main: #b82e2e;
}

/* ===============================
   RESET BASE
================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

/* ===============================
   TIPOGRAFÍA
================================ */
h1, h2, h3 {
  font-weight: 500;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(36px, 5vw, 60px); /* aumentado para hero más visible */
  line-height: 1.1;
}

h2 { font-size: 1.6rem; }

h3 {
  font-size: 0.9rem; /* más pequeño para diferenciarlo de h2 */
  font-weight: 500;
  margin-bottom: 12px;
}

p {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin: 0 0 18px;
}

p.secondary {
  font-size: 0.88rem; /* párrafos secundarios un poco más pequeños */
  color: var(--text-soft);
  margin-bottom: 14px;
}

/* ===============================
   ENLACES
================================ */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

/* ===============================
   HEADER – ESCRITORIO (STICKY)
================================ */
@media (min-width: 782px) {
  header.wp-block-template-part,
  .wp-site-blocks > header {
    width: 100%;
    margin: 0;
    padding: 24px 16px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  }

  .wp-block-site-title {
    font-size: 18px;
    white-space: nowrap;
  }

  .wp-block-navigation__container {
    display: flex;
    gap: 24px;
  }

  .wp-block-navigation a {
    font-size: 15px;
    white-space: nowrap;
  }
}

/* ===============================
   MENÚ MÓVIL FULLSCREEN ROJO + HEADER STICKY
================================ */
@media (max-width: 781px) {

  header.wp-block-template-part,
  .wp-site-blocks > header {
    position: sticky !important;
    top: 0 !important;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  }

  .wp-block-navigation__responsive-container-open {
    display: block !important;
    position: fixed;
    top: 12px;
    right: 16px;
    font-size: 32px;
    color: #b82e2e;
    z-index: 1001;
    cursor: pointer;
  }

  .wp-block-navigation__responsive-container {
    display: none;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: #b82e2e !important;
    z-index: 9999 !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .wp-block-navigation__responsive-container-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent !important;
  }

  .wp-block-navigation__container {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px;
  }

  .wp-block-navigation__container a {
    display: block;
    color: #ffffff !important;
    font-size: 32px !important;
    font-weight: 500 !important;
    text-align: center !important;
    padding: 16px 0;
  }

  .wp-block-navigation__responsive-container-close {
    display: block !important;
    position: absolute !important;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: #ffffff !important;
    cursor: pointer;
    z-index: 10002;
  }
}

/* ===============================
   HERO / COVER
================================ */
.wp-block-cover {
  min-height: 85vh;
  padding: clamp(40px, 8vh, 120px) clamp(16px, 5vw, 80px) !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.wp-block-cover h1 {
  max-width: 720px;
  font-size: clamp(36px, 6vw, 64px); /* más grande para hero */
  line-height: 1.1;
  color: var(--text-main);
}

.wp-block-cover p {
  max-width: 520px;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-soft);
  margin-top: 16px;
}

.wp-block-button__link {
  padding: 14px 28px;
  font-size: 0.95rem;
  margin-top: 20px;
}

 

/* ===============================
   ICONOS
================================ */
.icon-circle {
  width: 60px;
  height: 60px;
  background: #e60000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px;
}

.icon {
  width: 22px;
  height: 22px;
  fill: #fff;
}

@media (min-width: 1024px) {
  .icon { width: 38px; height: 38px; }
}