/*
Theme Name: Entre Proyectos y Café
Theme URI: https://entreproyectosycafe.com
Author: Pame
Description: Tema personalizado para el blog personal "Entre Proyectos y Café", con secciones por categoría (Vida Adulta & Caos, Trabajo & Consultoría, Desconexión & Gaming).
Version: 1.0
Requires PHP: 7.4
Text Domain: entreproyectoscafe
*/

/* ==========================================================================
   1. VARIABLES Y RESET
   ========================================================================== */
:root {
  /* Paleta oficial "Entre Proyectos y Café" */
  --color-azul-cielo: #B7DDF5;
  --color-agua-clara: #D9F0F3;
  --color-menta-suave: #CDEDDC;
  --color-teal-suave: #A6D5C8;
  --color-verde-salvia: #7EC3B2;
  --color-marfil-calido: #FAF7F1;

  --color-bg-light: var(--color-azul-cielo);
  --color-bg-lighter: var(--color-agua-clara);
  --color-dark-card: #1f2d3d;
  --color-text-dark: #24384a;
  --color-text-light: #ffffff;
  --color-accent-orange: #5b8fc9; /* azul acento para texto destacado */
  --color-accent-green: var(--color-verde-salvia);

  /* Un tono por categoría, dentro de la misma familia de la paleta */
  --color-cat-vida: #6b9bc9;      /* azul cielo más profundo */
  --color-cat-trabajo: #3f6d8a;   /* azul más oscuro, "serio" */
  --color-cat-gaming: #4a9e84;    /* verde salvia más intenso */

  --radius-lg: 20px;
  --radius-pill: 999px;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background: var(--color-bg-light);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0 0 0.5em;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   2. HEADER / NAV
   ========================================================================== */
.site-header {
  position: relative;
  background: #ffffff;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-branding img.logo {
  height: 56px;
  width: 56px;
  border-radius: 50%;
}

.site-branding .site-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-dark);
  transition: color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--color-accent-orange);
}

.main-navigation .sub-menu {
  display: none;
  position: absolute;
  background: #fff;
  flex-direction: column;
  gap: 0;
  padding: 8px 0;
  margin-top: 12px;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  min-width: 220px;
}

.main-navigation li {
  position: relative;
}

.main-navigation li:hover .sub-menu {
  display: flex;
}

.main-navigation .sub-menu a {
  padding: 10px 20px;
}

.main-navigation .sub-menu a:hover {
  background: var(--color-bg-lighter);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ==========================================================================
   3. HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--color-text-light);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,12,15,0.75) 0%, rgba(10,12,15,0.35) 60%, rgba(10,12,15,0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 60px 24px;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 28px;
  opacity: 0.9;
}

/* ==========================================================================
   4. BOTONES
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-solid {
  background: var(--color-accent-green);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  border: 2px solid currentColor;
  color: inherit;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ==========================================================================
   5. SECCIÓN "EXPLORA EL CONTENIDO" (tarjetas de categoría)
   ========================================================================== */
.explore-section {
  padding: 80px 0;
  text-align: center;
}

.explore-section h2 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.explore-section .subtitle {
  color: var(--color-accent-orange);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: left;
}

.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-color: var(--color-dark-card);
  color: var(--color-text-light);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.85) 85%);
}

.category-card .card-content {
  position: relative;
  z-index: 2;
  padding: 32px;
}

.category-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.category-card p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 24px;
}

.category-card:nth-child(1) { background-color: var(--color-cat-vida); }
.category-card:nth-child(2) { background-color: var(--color-cat-trabajo); }
.category-card:nth-child(3) { background-color: var(--color-cat-gaming); }

/* ==========================================================================
   6. ARCHIVO DE CATEGORÍA (lista de artículos)
   ========================================================================== */
.category-archive-header {
  padding: 60px 0 30px;
  text-align: center;
}

.category-archive-header h1 {
  font-size: 2.6rem;
}

.category-archive-header p {
  max-width: 600px;
  margin: 0 auto;
  color: #4b4b4b;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 20px 0 80px;
}

.post-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
}

.post-card .post-thumb {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #e2e2e2;
}

.post-card .post-body {
  padding: 22px;
}

.post-card .post-meta {
  font-size: 0.8rem;
  color: var(--color-accent-orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.post-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.post-card .excerpt {
  font-size: 0.9rem;
  color: #555;
}

.no-posts {
  text-align: center;
  padding: 60px 24px;
  color: #666;
}

/* ==========================================================================
   7. ARTÍCULO INDIVIDUAL
   ========================================================================== */
.single-post-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px;
}

.single-post-wrap .post-category-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-lighter);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.single-post-wrap h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.single-post-wrap .post-date {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.single-post-wrap .featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
}

.single-post-wrap .entry-content {
  font-size: 1.05rem;
}

.single-post-wrap .entry-content p {
  margin-bottom: 1.4em;
}

.related-posts {
  background: var(--color-bg-lighter);
  padding: 60px 0;
  margin-top: 60px;
}

.related-posts h2 {
  text-align: center;
  margin-bottom: 32px;
  font-size: 1.6rem;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-dark-card);
  color: #fff;
  padding: 50px 0 30px;
  text-align: center;
}

.site-footer .footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.site-footer .footer-nav a {
  font-size: 0.9rem;
  opacity: 0.85;
}

.site-footer .copyright {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ==========================================================================
   10. FORMULARIO DE CONTACTO
   ========================================================================== */
.contact-wrap {
  max-width: 640px;
  padding: 20px 24px 80px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 30px;
}

.contact-form label {
  font-weight: 700;
  font-family: var(--font-heading);
  margin-top: 16px;
  color: var(--color-text-dark);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #c3d3de;
  font-family: var(--font-body);
  font-size: 1rem;
  resize: vertical;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-verde-salvia);
}

.contact-form button {
  align-self: flex-start;
  margin-top: 24px;
}

.form-notice {
  padding: 14px 20px;
  border-radius: 12px;
  margin-top: 24px;
  font-weight: 600;
}

.form-success {
  background: var(--color-menta-suave);
  color: #1c4b3a;
}

.form-error {
  background: #f8d7da;
  color: #842029;
}

/* ==========================================================================
   11. PÁGINA "SOBRE MÍ"
   ========================================================================== */
.about-hero {
  background: linear-gradient(135deg, var(--color-agua-clara) 0%, var(--color-azul-cielo) 100%);
  padding: 80px 0;
}

.about-hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.about-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #ffffff;
  box-shadow: 0 12px 30px rgba(31,45,61,0.15);
  flex-shrink: 0;
}

.about-hero-text h1 {
  font-size: 2.6rem;
  margin-bottom: 18px;
  color: var(--color-text-dark);
}

.about-hero-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-dark);
  max-width: 620px;
}

.about-passions {
  padding: 70px 0;
  text-align: center;
  background: var(--color-marfil-calido);
}

.about-passions h2 {
  font-size: 1.8rem;
  margin-bottom: 32px;
  color: var(--color-text-dark);
}

.passion-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.passion-tag {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 2px solid var(--color-teal-suave);
  color: var(--color-text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(31,45,61,0.06);
  transition: transform 0.2s ease;
}

.passion-tag:hover {
  transform: translateY(-3px);
  background: var(--color-menta-suave);
}

.about-block {
  padding: 70px 0;
  max-width: 780px;
  margin: 0 auto;
}

.about-block h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--color-text-dark);
}

.about-block p {
  font-size: 1.08rem;
  line-height: 1.8;
  color: #3d4f5e;
}

.about-story {
  background: var(--color-dark-card);
  padding: 80px 0;
}

.story-card {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  color: #ffffff;
}

.story-icon {
  font-size: 2.5rem;
  display: inline-block;
  margin-bottom: 18px;
}

.story-card h2 {
  font-size: 1.9rem;
  margin-bottom: 22px;
  color: var(--color-teal-suave);
}

.story-card p {
  font-size: 1.08rem;
  line-height: 1.85;
  opacity: 0.92;
}

@media (max-width: 768px) {
  .about-hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .about-hero-text p {
    max-width: 100%;
  }
}

.about-gallery-section {
  padding: 60px 0;
  background: var(--color-marfil-calido);
}

.about-gallery-inner {
  display: flex;
  align-items: center;
  gap: 56px;
}

.gallery-text {
  flex: 1;
  min-width: 0;
}

.gallery-text h2 {
  font-size: 1.9rem;
  margin-bottom: 18px;
  color: var(--color-text-dark);
}

.gallery-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #3d4f5e;
}

.about-carousel {
  position: relative;
  flex: 0 0 420px;
  max-width: 420px;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 32px rgba(31,45,61,0.14);
}

.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, var(--color-agua-clara) 0%, var(--color-marfil-calido) 100%);
  padding: 28px 20px 22px;
  box-sizing: border-box;
}

.carousel-image-wrap {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(31,45,61,0.14);
}

.carousel-caption {
  margin: 16px 0 0;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text-dark);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-btn:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cdd9e3;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.active {
  background: var(--color-verde-salvia);
  transform: scale(1.25);
}

@media (max-width: 900px) {
  .about-gallery-inner {
    flex-direction: column;
  }

  .about-carousel {
    flex: 0 0 auto;
    width: 100%;
    max-width: 480px;
  }

  .gallery-text {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .carousel-image-wrap {
    height: 220px;
  }

  .carousel-caption {
    font-size: 1rem;
  }
}

/* ==========================================================================
   9. RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .category-cards,
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-navigation { display: none; }
  .menu-toggle { display: block; }

  .main-navigation.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    z-index: 100;
  }

  .main-navigation.is-open ul {
    flex-direction: column;
    gap: 16px;
  }

  .hero-content h1 { font-size: 2.1rem; }

  .category-cards,
  .posts-grid {
    grid-template-columns: 1fr;
  }
}
