/*
Theme Name: Gavaweb Theme
Theme URI: https://gavaweb.com
Author: Jorge Eduardo Valenzuela
Description: Theme WordPress para replicar el sitio estatico de gavaweb_vite con rutas equivalentes y backend integrado.
Version: 1.0.6
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: gavaweb-theme
*/

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    transform: scale(1.07);
    opacity: 0.55;
  }
  to {
    transform: scale(1);
    opacity: 0.72;
  }
}

:root {
  --color-bg: #0a0a0a;
  --color-bg-alt: #18181b;
  --color-surface: #23232a;
  --color-primary: #ff6b00;
  --color-primary-hover: #ff8c42;
  --color-text: #f3f4f6;
  --color-text-muted: #a1a1aa;
  --color-border: #2b2b33;
  --container-max: 1220px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --transition-quick: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Inter", sans-serif;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 107, 0, 0.14), transparent 38%),
    radial-gradient(circle at 85% 5%, rgba(255, 140, 66, 0.12), transparent 40%),
    var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  animation: fadeIn 0.6s ease-out;
}

body.menu-open {
  overflow: hidden;
}

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 10, 10, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  transition: transform var(--transition-quick);
}

.brand:hover {
  transform: translateY(-1px);
}

.brand img {
  max-height: 44px;
  width: auto;
}

.brand span {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.main-nav a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.72rem;
  border-radius: 7px;
  position: relative;
  transition: color var(--transition-quick), transform var(--transition-quick);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transform: translateX(-50%);
  transition: width var(--transition-quick);
}

.main-nav a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.main-nav a:hover::after {
  width: 66%;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  background: #111319;
  color: var(--color-text);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  transition: border-color var(--transition-quick), box-shadow var(--transition-quick), transform var(--transition-quick);
}

.menu-toggle-box {
  width: 20px;
  height: 14px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle-line {
  width: 100%;
  height: 2px;
  border-radius: 99px;
  background: #f3f4f6;
  transition: transform var(--transition-smooth), opacity var(--transition-quick), background var(--transition-quick);
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.18);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  background: var(--color-primary);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  background: var(--color-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.67rem 1.14rem;
  background: linear-gradient(120deg, var(--color-primary), var(--color-primary-hover));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), filter var(--transition-quick);
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.2);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 107, 0, 0.3);
  filter: brightness(1.05);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  box-shadow: none;
}

.btn-outline:hover {
  color: #fff;
  background: var(--color-primary);
}

.section {
  padding: 4.8rem 0;
  animation: slideUp 0.55s ease-out;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0));
}

.section-title {
  margin: 0 0 1rem;
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin: 2.2rem 0 1rem;
  text-align: center;
  color: var(--color-primary);
  font-size: 1.35rem;
  font-weight: 700;
}

.section-lead {
  color: var(--color-text-muted);
  text-align: center;
  max-width: 740px;
  margin: 0 auto 2rem;
  font-size: 1.03rem;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(90vh, 860px);
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  animation: zoomIn 8s ease-out;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, rgba(255, 107, 0, 0.67) 0%, rgba(255, 140, 66, 0.46) 38%, rgba(10, 10, 10, 0.58) 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.2rem;
  align-items: center;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.08;
  animation: slideUp 0.7s ease-out 0.1s both;
}

.hero h1 span {
  color: var(--color-primary);
}

.hero p {
  margin: 0 0 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 620px;
  animation: slideUp 0.7s ease-out 0.2s both;
}

.hero .actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  animation: slideUp 0.7s ease-out 0.3s both;
}

.hero-side {
  width: 100%;
  max-width: 450px;
  margin-left: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.32);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  animation: slideDown 0.8s ease-out 0.2s both;
}

.hero-side:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

.about-short,
.about-full {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

.about-page-wrap {
  max-width: 1080px;
}

.about-short {
  max-width: 820px;
  margin: 0 auto;
  align-items: center;
}

.about-short-copy {
  max-width: 620px;
}

.about-short-copy h2 {
  margin: 0 0 0.35rem;
}

.about-short-copy p {
  margin: 0.3rem 0 0.7rem;
}

.about-page-title {
  text-align: left;
  margin-bottom: 2.1rem;
  background: none;
  -webkit-text-fill-color: initial;
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: -0.02em;
}

.about-profile {
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 2rem;
}

.about-name {
  margin: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  line-height: 1.2;
}

.about-short img,
.about-full img {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.about-avatar-small {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 999px;
  border: 3px solid rgba(255, 107, 0, 0.8);
}

.about-avatar {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 999px;
  border: 3px solid rgba(255, 107, 0, 0.8);
}

.about-role {
  color: var(--color-primary);
  font-weight: 600;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.about-summary {
  margin: 0.4rem 0;
  color: #cfd1d7;
  font-size: clamp(0.98rem, 1.5vw, 1.06rem);
  line-height: 1.7;
}

.about-heading {
  margin: 2.2rem 0 1rem;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  text-align: left;
}

.timeline {
  margin-top: 1rem;
  padding-left: 1.3rem;
  border-left: 2px solid rgba(255, 107, 0, 0.5);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.4rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.85rem;
  top: 0.45rem;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--color-primary);
}

.timeline-item h3 {
  margin: 0;
  color: var(--color-primary);
  font-size: 1.06rem;
}

.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.timeline-head p {
  margin: 0;
  color: #d4d4d8;
  font-size: 0.95rem;
}

.timeline-head span {
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.timeline li {
  margin-bottom: 0.65rem;
  color: #d6d7db;
  line-height: 1.5;
  font-size: 0.94rem;
}

.about-education-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.about-education-card {
  padding: 1.35rem;
}

.about-education-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.about-education-card p {
  margin-top: 0.3rem;
}

.about-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

.about-skills-grid h3 {
  margin: 0.8rem 0 0.45rem;
  font-size: 1rem;
}

.skill-row {
  margin-bottom: 0.65rem;
}

.skill-row-head {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.skill-row-head span:last-child {
  color: var(--color-primary);
  font-weight: 700;
}

.skill-track {
  margin-top: 0.35rem;
  height: 8px;
  border-radius: 99px;
  background: #151722;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
}

.tool-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.5rem 0 1rem;
}

.tool-badge {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.84rem;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.02);
}

.faq-grid {
  display: grid;
  gap: 0.75rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #111319;
  padding: 0.8rem 0.9rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: #f4f4f5;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0.6rem 0 0;
  color: var(--color-text-muted);
}

@media (max-width: 1200px) {
  .about-page-wrap {
    max-width: 1000px;
  }

  .about-profile {
    grid-template-columns: 164px 1fr;
  }
}

.card-grid,
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}
#services .card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}

.card,
.plan,
.wizard-wrap {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: transform var(--transition-smooth), border-color var(--transition-quick), box-shadow var(--transition-smooth);
}

.card:hover,
.plan:hover,
.wizard-wrap:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 107, 0, 0.5);
  box-shadow: 0 16px 42px rgba(255, 107, 0, 0.12);
}

.card img,
.post-card img,
.project-card img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform var(--transition-smooth), filter var(--transition-smooth);
}

.card:hover img,
.post-card:hover img,
.project-card:hover img {
  transform: scale(1.04);
  filter: brightness(1.03);
}

.card h3,
.plan h3 {
  margin: 0.85rem 0 0.35rem;
}

.card p,
.plan p,
.meta,
.contact-list li {
  margin: 0;
  color: var(--color-text-muted);
}

.meta {
  margin-top: 0.55rem;
  font-size: 0.9rem;
}

.project-card,
.post-card {
  display: block;
}

.plan.highlight {
  background: linear-gradient(140deg, rgba(255, 107, 0, 0.95), rgba(255, 140, 66, 0.9));
  transform: scale(1.03);
}

.plan.highlight h3,
.plan.highlight .price,
.plan.highlight li {
  color: #fff;
}

.plan .price {
  color: var(--color-primary);
  font-weight: 800;
  font-size: 1.52rem;
  margin: 0.4rem 0;
}

.plan ul {
  margin: 0.7rem 0 0;
  padding-left: 1rem;
}

.center {
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.5rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.contact-list li {
  margin-bottom: 0.45rem;
}

.form-grid label {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 0.94rem;
}

.checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.01);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--color-border);
  background: #111217;
  color: var(--color-text);
  border-radius: 10px;
  padding: 0.72rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-quick), box-shadow var(--transition-quick), background var(--transition-quick);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(255, 107, 0, 0.7);
  background: #151722;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.14);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-message {
  margin-top: 0.8rem;
  font-weight: 600;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: slideUp 0.35s ease-out;
}

.wizard-actions {
  display: flex;
  gap: 0.55rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.wizard-proposal {
  margin-top: 1.2rem;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 107, 0, 0.35);
  background: #121822;
}

.post-hero {
  position: relative;
  min-height: 330px;
  display: flex;
  align-items: flex-end;
}

.post-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.4));
}

.post-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 2rem;
}

.post-hero-content h1 {
  margin: 0.6rem 0;
}

.back-link {
  color: var(--color-primary);
  font-weight: 600;
}

.post-content {
  max-width: 920px;
}

.blog-prose {
  color: var(--color-text-muted);
}

.blog-prose h1,
.blog-prose h2,
.blog-prose h3,
.blog-prose h4,
.blog-prose strong {
  color: #fff;
}

.site-footer {
  margin-top: 1rem;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.footer-logo {
  max-height: 42px;
  width: auto;
}

.site-footer h4 {
  margin-top: 0;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: var(--color-text-muted);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-copy {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-muted);
}

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
    position: relative;
    z-index: 70;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 65;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    width: 100vw;
    height: 100dvh;
    padding: 6.5rem 1rem 1.5rem;
    overflow-y: auto;
    background: #0b0c10;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4%);
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    width: min(460px, 100%);
    text-align: center;
    font-size: clamp(1.1rem, 4vw, 1.35rem);
    color: #f7f7f8;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: #161922;
    animation: slideDown 0.45s ease-out;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a:hover {
    color: #fff;
    border-color: rgba(255, 107, 0, 0.6);
    background: #1c202b;
    transform: none;
  }

  .main-nav .btn {
    margin-top: 0.2rem;
    width: min(460px, 100%);
    padding: 0.85rem 1rem;
    border: none;
    background: linear-gradient(120deg, var(--color-primary), var(--color-primary-hover));
  }

  .hero-grid,
  .about-short,
  .about-full,
  .about-education-grid,
  .about-skills-grid,
  .card-grid,
  .plan-grid,
  .contact-grid,
  .footer-grid,
  #services .card-grid {
    grid-template-columns: 1fr;
  }

  .about-short {
    justify-items: center;
    text-align: center;
  }

  .about-page-title,
  .about-heading {
    text-align: center;
  }

  .about-profile {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1rem;
  }

  .about-page-title {
    margin-bottom: 1.6rem;
  }

  .timeline-head {
    gap: 0.4rem;
  }

  .about-short-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero {
    min-height: auto;
    padding: 6rem 0 4rem;
  }

  .hero-side {
    margin: 0;
    max-width: 100%;
  }

  .section {
    padding: 4rem 0;
  }

  .checks {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 0.85rem;
  }

  .navbar-inner {
    min-height: 72px;
  }

  .brand img {
    max-height: 40px;
  }

  .brand span {
    font-size: 0.77rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .about-page-title {
    font-size: 1.95rem;
  }

  .about-avatar {
    width: 132px;
    height: 132px;
  }

  .about-avatar-small {
    width: 96px;
    height: 96px;
  }

  .about-role {
    font-size: 0.98rem;
  }

  .about-summary,
  .timeline li,
  .skill-row-head {
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 1.92rem;
  }

  .hero p {
    font-size: 0.97rem;
  }

  .btn,
  .main-nav .btn {
    min-height: 44px;
  }
}
