/*
Theme Name: Tierra Roja Cádiz
Theme URI: https://tierrarojacadiz.es
Author: Tierra Roja Cádiz
Description: Tema a medida para empresa de mantenimiento de pistas de tenis de tierra batida en la provincia de Cádiz. Compatible con el plugin Elementor: puedes crear páginas nuevas o editar el contenido con el editor visual de Elementor, y este tema le dará soporte completo (ancho de contenido, fuentes, menú, logo, etc.).
Version: 1.1.0
Requires at least: 5.9
Requires PHP: 7.4
Tested up to: 6.6
Text Domain: tierra-roja
*/

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --clay: #c1440e;
    --clay-dark: #8b2f07;
    --clay-light: #e8c4b3;
    --clay-pale: #fdf5f0;
    --court-green: #2d5a27;
    --sand: #f0e6d3;
    --text: #1a1208;
    --text-muted: #6b5a4e;
    --white: #fff;
    --radius: 4px;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
  }

  /* NAV */
  nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.2rem 4rem;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(193,68,14,0.12);
  }
  .logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem; font-weight: 900;
    color: var(--clay);
    letter-spacing: -0.5px;
    line-height: 1;
  }
  .logo span { display: block; font-size: 0.6rem; font-family: 'DM Sans', sans-serif; font-weight: 300; letter-spacing: 4px; text-transform: uppercase; color: var(--text-muted); margin-top: 2px; }
  .nav-links { display: flex; gap: 2.5rem; list-style: none; }
  .nav-links a { text-decoration: none; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.5px; color: var(--text-muted); transition: color 0.2s; }
  .nav-links a:hover { color: var(--clay); }
  .nav-cta {
    background: var(--clay); color: var(--white);
    border: none; padding: 0.65rem 1.5rem;
    border-radius: var(--radius); font-size: 0.85rem; font-weight: 500;
    cursor: pointer; transition: background 0.2s;
    font-family: 'DM Sans', sans-serif;
  }
  .nav-cta:hover { background: var(--clay-dark); }

  /* HERO */
  .hero {
    min-height: 100vh;
    display: grid; grid-template-columns: 1fr 1fr;
    padding-top: 80px;
  }
  .hero-left {
    background: var(--clay-pale);
    padding: 6rem 4rem 4rem;
    display: flex; flex-direction: column; justify-content: center;
    position: relative;
  }
  .hero-left::before {
    content: '';
    position: absolute; bottom: 0; right: -40px;
    width: 80px; height: 100%;
    background: var(--clay-pale);
    clip-path: polygon(0 0, 0 100%, 100% 100%);
    z-index: 2;
  }
  .tagline {
    font-size: 0.75rem; font-weight: 500;
    letter-spacing: 4px; text-transform: uppercase;
    color: var(--clay); margin-bottom: 1.5rem;
  }
  h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 900; line-height: 1.05;
    color: var(--text);
    margin-bottom: 1.5rem;
  }
  h1 em { color: var(--clay); font-style: normal; }
  .hero-desc {
    font-size: 1.05rem; line-height: 1.7;
    color: var(--text-muted); max-width: 420px;
    margin-bottom: 2.5rem;
  }
  .hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
  .btn-primary {
    background: var(--clay); color: var(--white);
    padding: 0.9rem 2rem; border-radius: var(--radius);
    font-size: 0.9rem; font-weight: 500;
    text-decoration: none; transition: background 0.2s;
  }
  .btn-primary:hover { background: var(--clay-dark); }
  .btn-secondary {
    border: 1.5px solid var(--clay); color: var(--clay);
    padding: 0.9rem 2rem; border-radius: var(--radius);
    font-size: 0.9rem; font-weight: 500;
    text-decoration: none; transition: all 0.2s;
    background: transparent;
  }
  .btn-secondary:hover { background: var(--clay); color: white; }

  .hero-right {
    background: var(--clay);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    padding: 4rem 3rem;
  }
  .court-illustration {
    width: 100%; max-width: 480px;
    position: relative;
  }
  /* Court SVG area */
  .court-svg { width: 100%; height: auto; }

  .stats-row {
    display: flex; gap: 0; margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
  }
  .stat-item { flex: 1; text-align: center; }
  .stat-item + .stat-item { border-left: 1px solid rgba(255,255,255,0.2); }
  .stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem; font-weight: 900;
    color: var(--white);
  }
  .stat-label {
    font-size: 0.75rem; color: rgba(255,255,255,0.65);
    margin-top: 4px; letter-spacing: 0.5px;
  }

  /* SERVICES */
  .section { padding: 6rem 4rem; }
  .section-label {
    font-size: 0.75rem; font-weight: 500;
    letter-spacing: 4px; text-transform: uppercase;
    color: var(--clay); margin-bottom: 1rem;
  }
  h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 700; line-height: 1.15;
    margin-bottom: 1rem;
  }
  .section-intro {
    font-size: 1.05rem; color: var(--text-muted);
    max-width: 520px; line-height: 1.7;
    margin-bottom: 3.5rem;
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2px;
    background: #e8e0d8;
    border: 2px solid #e8e0d8;
    border-radius: 8px;
    overflow: hidden;
  }
  .service-card {
    background: var(--white);
    padding: 2rem;
    transition: background 0.2s;
  }
  .service-card:hover { background: var(--clay-pale); }
  .service-icon {
    width: 48px; height: 48px;
    background: var(--clay-pale);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
  }
  .service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem; font-weight: 700;
    margin-bottom: 0.6rem;
  }
  .service-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }

  /* AREA DE ACTUACION */
  .area-section {
    background: var(--sand);
    padding: 6rem 4rem;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 5rem; align-items: center;
  }
  .area-map {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid rgba(0,0,0,0.08);
  }
  .map-title {
    font-size: 0.7rem; letter-spacing: 3px;
    text-transform: uppercase; color: var(--text-muted);
    margin-bottom: 1rem; font-weight: 500;
  }
  .zone-list { list-style: none; }
  .zone-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.7rem 0;
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
    font-size: 0.9rem;
  }
  .zone-item:last-child { border-bottom: none; }
  .zone-count {
    background: var(--clay); color: var(--white);
    font-size: 0.7rem; font-weight: 700;
    padding: 2px 8px; border-radius: 20px;
  }
  .zone-count.alt { background: var(--clay-light); color: var(--clay-dark); }

  /* PROCESO */
  .proceso-section { padding: 6rem 4rem; }
  .proceso-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    margin-top: 3rem;
  }
  .proceso-steps::before {
    content: '';
    position: absolute;
    top: 28px; left: 12.5%; right: 12.5%;
    height: 1.5px;
    background: linear-gradient(90deg, var(--clay), var(--clay-light));
    z-index: 0;
  }
  .step {
    text-align: center; padding: 0 1.5rem;
    position: relative; z-index: 1;
  }
  .step-num {
    width: 56px; height: 56px;
    background: var(--white);
    border: 2px solid var(--clay);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem; font-weight: 900;
    color: var(--clay);
  }
  .step h3 { font-size: 0.9rem; font-weight: 500; margin-bottom: 0.5rem; }
  .step p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }

  /* TARIFAS */
  .tarifas-section {
    background: var(--text);
    color: var(--white);
    padding: 6rem 4rem;
  }
  .tarifas-section .section-label { color: var(--clay-light); }
  .tarifas-section h2 { color: var(--white); }
  .tarifas-section .section-intro { color: rgba(255,255,255,0.6); }

  .tarifas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
  }
  .tarifa-card {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px; padding: 2rem;
    transition: border-color 0.2s;
  }
  .tarifa-card:hover { border-color: var(--clay); }
  .tarifa-card.featured {
    border-color: var(--clay);
    background: rgba(193,68,14,0.1);
  }
  .tarifa-tag {
    font-size: 0.7rem; letter-spacing: 3px;
    text-transform: uppercase; font-weight: 500;
    color: var(--clay-light); margin-bottom: 1rem;
  }
  .tarifa-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem; margin-bottom: 0.4rem;
  }
  .tarifa-precio {
    font-size: 0.85rem; color: rgba(255,255,255,0.55);
    margin-bottom: 1.5rem;
  }
  .tarifa-features { list-style: none; }
  .tarifa-features li {
    font-size: 0.85rem; color: rgba(255,255,255,0.75);
    padding: 0.45rem 0;
    border-bottom: 0.5px solid rgba(255,255,255,0.07);
    display: flex; align-items: center; gap: 8px;
  }
  .tarifa-features li::before {
    content: '✓';
    color: var(--clay-light); font-size: 0.75rem;
    flex-shrink: 0;
  }

  /* CONTACT */
  .contact-section {
    background: var(--clay-pale);
    padding: 6rem 4rem;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 5rem; align-items: start;
  }
  .contact-form {
    display: flex; flex-direction: column; gap: 1rem;
  }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .form-group { display: flex; flex-direction: column; gap: 6px; }
  .form-group label { font-size: 0.78rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0.3px; }
  .form-group input,
  .form-group select,
  .form-group textarea {
    border: 1.5px solid rgba(0,0,0,0.15);
    border-radius: var(--radius);
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s;
    outline: none;
  }
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus { border-color: var(--clay); }
  .form-group textarea { resize: vertical; min-height: 100px; }
  .form-submit {
    background: var(--clay); color: var(--white);
    border: none; padding: 0.9rem 2rem;
    border-radius: var(--radius); font-size: 0.9rem; font-weight: 500;
    cursor: pointer; font-family: 'DM Sans', sans-serif;
    transition: background 0.2s; align-self: flex-start;
    margin-top: 0.5rem;
  }
  .form-submit:hover { background: var(--clay-dark); }

  .contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem; margin-bottom: 1rem;
  }
  .contact-info p { color: var(--text-muted); line-height: 1.7; margin-bottom: 2rem; }
  .contact-details { display: flex; flex-direction: column; gap: 1rem; }
  .contact-detail {
    display: flex; align-items: flex-start; gap: 1rem;
  }
  .contact-detail-icon {
    width: 40px; height: 40px;
    background: var(--clay); color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
  }
  .contact-detail-text { font-size: 0.9rem; }
  .contact-detail-text strong { display: block; font-weight: 500; margin-bottom: 2px; }
  .contact-detail-text span { color: var(--text-muted); }

  /* FOOTER */
  footer {
    background: var(--text);
    color: rgba(255,255,255,0.5);
    padding: 2rem 4rem;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.8rem;
  }
  footer .logo { color: rgba(255,255,255,0.8); }
  footer .logo span { color: rgba(255,255,255,0.35); }

  @media (max-width: 900px) {
    nav { padding: 1rem 2rem; }
    .nav-links { display: none; }
    .hero { grid-template-columns: 1fr; }
    .hero-right { min-height: 300px; }
    .hero-left { padding: 3rem 2rem 2rem; }
    .section { padding: 4rem 2rem; }
    .area-section, .contact-section { grid-template-columns: 1fr; padding: 4rem 2rem; gap: 3rem; }
    .tarifas-section { padding: 4rem 2rem; }
    .tarifas-grid { grid-template-columns: 1fr; }
    .proceso-steps { grid-template-columns: 1fr 1fr; }
    .proceso-steps::before { display: none; }
    footer { flex-direction: column; gap: 0.5rem; text-align: center; padding: 2rem; }
  }
