/*
Theme Name: Juan Carlos Raygoza Portfolio
Theme URI: https://www.carlosraygozadesings.com
Author: Juan Carlos Raygoza
Description: Tema premium personalizado para portfolio profesional.
Version: 1.0
*/

/* A partir de aquí pega todo tu código CSS existente... */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.6;
}

:root {
  --black: #0b0b0b;
  --blue: #2563eb;
  --green: #10b981;
  --gray: #f6f6f6;
}

/* =====================
   HEADER & NAV
===================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background: rgba(255, 255, 255, .75);
  backdrop-filter: blur(20px);
  transition: background 0.3s, box-shadow 0.3s;
}

nav {
  height: 80px;
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  cursor: pointer;
}

.logo span {
  color: var(--blue);
}

nav ul {
  display: flex;
  gap: 35px;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: .3s;
}

nav a:hover {
  color: var(--blue);
}

/* =====================
   HERO SECTION
===================== */
.hero {
  min-height: 100vh;
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  padding-top: 100px;
}

.tag {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  background: #eff6ff;
  color: var(--blue);
  font-size: .85rem;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -4px;
  margin: 30px 0;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.25rem;
  max-width: 550px;
  color: #555;
  margin-bottom: 35px;
}

.btn {
  display: inline-block;
  background: #111;
  color: white;
  padding: 16px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  margin-right: 15px;
  transition: .4s ease;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.btn:hover {
  transform: translateY(-5px);
  background: var(--blue);
}

.outline {
  background: white;
  color: #111;
  border: 1px solid #ddd;
}

.outline:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

.hero-photo {
  display: flex;
  justify-content: center;
}

.hero-photo img {
  width: 420px;
  height: 520px;
  object-fit: cover;
  border-radius: 50px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .2);
  animation: floating 6s infinite;
}

@keyframes floating {
  50% { transform: translateY(-20px); }
}

/* =====================
   NUEVA SECCIÓN: SOBRE MÍ PREMIUM
===================== */
.about-premium {
  background: #ffffff;
  padding: 140px 5%;
}

.about-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

.section-tag {
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 15px;
}

.about-text h2 {
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  line-height: 1.1;
  text-align: left;
  margin-bottom: 30px;
  letter-spacing: -2px;
}

.about-text h2 span {
  background: linear-gradient(90deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  color: transparent;
}

.about-text p {
  font-size: 1.15rem;
  color: #444;
  margin-bottom: 20px;
  max-width: 600px;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-card {
  background: var(--gray);
  padding: 30px;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateX(-5px);
}

.stat-card h4 {
  font-size: 1.5rem;
  color: var(--blue);
  margin-bottom: 8px;
  font-weight: 700;
}

.stat-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

/* =====================
   SECTIONS GENERALS
===================== */
.section {
  padding: 120px 5%;
}

.section h2,
.services h2,
.contact h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 20px;
}

.subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 50px;
}

/* =====================
   GALERIAS
===================== */
.gallery {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.gallery img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 30px;
  transition: .5s;
}

.gallery img:hover {
  transform: scale(1.04);
}

/* =====================
   WEB PROJECTS
===================== */
.dark {
  background: var(--black);
  color: white;
}

.projects {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.projects article {
  background: #151515;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.projects img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.projects h3 {
  padding: 25px;
  font-size: 1.5rem;
}

.projects p {
  padding: 0 25px 30px;
  color: #aaa;
}

/* =====================
   SERVICES
===================== */
.services {
  padding: 120px 5%;
  background: var(--gray);
}

.cards {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.cards div {
  background: white;
  padding: 35px;
  border-radius: 30px;
  font-size: 2rem;
  transition: .4s;
}

.cards div:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.cards h3 {
  font-size: 1.3rem;
  margin: 20px 0 10px;
}

.cards p {
  font-size: 1rem;
  color: #666;
}

/* =====================
   CONTACT
===================== */
.contact {
  padding: 120px 20px;
  text-align: center;
}

.contact h2 {
  font-size: 4rem;
}

.contact p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: #666;
}

/* =====================
   FOOTER
===================== */
footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 50px;
}

footer p {
  color: #aaa;
}

/* =====================
   ANIMATIONS
===================== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: 1s ease;
}

.reveal.active {
  opacity: 1;
  transform: none;
}

/* =====================
   RESPONSIVE (MEDIA QUERIES)
===================== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p {
    margin: auto;
  }

  .hero-photo {
    order: -1;
  }

  .hero-photo img {
    width: 300px;
    height: 380px;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-text h2 {
    text-align: center;
  }

  .about-text p {
    text-align: center;
    margin: auto;
    margin-bottom: 20px;
  }

  .stat-card:hover {
    transform: translateY(-5px);
  }

  .gallery, 
  .projects, 
  .cards {
    grid-template-columns: 1fr;
  }

  nav ul {
    display: none;
  }
}

/* ==========================================
   FIXES PARA WORDPRESS
========================================== */

/* Limpieza del logo */
.logo a {
  text-decoration: none;
  color: inherit;
}

/* Adaptación del menú dinámico de WP */
nav .nav-menu {
  display: flex;
  gap: 35px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav .nav-menu li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: .3s;
}

nav .nav-menu li a:hover {
  color: var(--blue);
}

/* Corregir barra de administración de WordPress si estás logueado */
body.admin-bar header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar header {
    top: 46px;
  }
}