/*
Theme Name: CCA Estrela de Marín - Completo
Theme URI: https://estrelademarin.gal
Author: Manus
Author URI: https://manus.im
Description: Tema WordPress que replica fielmente el diseño del sitio de referencia de Estrela de Marín
Version: 1.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cca-estrela-completo
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

/* ============================================
   RESET E VARIABLES GLOBAIS
   ============================================ */

:root {
  --primary-green: #00AA00;
  --primary-green-dark: #008800;
  --primary-green-light: #33CC33;
  --primary-blue: #1a2e4a;
  --primary-blue-light: #2d3f5a;
  --accent-orange: #FF9900;
  --accent-orange-dark: #FF7700;
  --white: #FFFFFF;
  --gray-light: #F5F5F5;
  --gray-medium: #999999;
  --gray-dark: #333333;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --border-color: #E5E7EB;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  color: var(--primary-green);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-green-dark);
}

/* ============================================
   CONTENEDOR Y LAYOUT
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
}

/* ============================================
   BOTONES
   ============================================ */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--primary-green);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-green-dark);
  box-shadow: 0 4px 12px rgba(0, 170, 0, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--primary-blue);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--primary-blue-light);
  box-shadow: 0 4px 12px rgba(26, 46, 74, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}

.btn-outline:hover {
  background-color: var(--primary-green);
  color: var(--white);
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
  background-color: var(--white);
  border-bottom: 2px solid var(--primary-blue);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-top {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 0.75rem 0;
  font-size: 0.9rem;
  text-align: center;
}

.header-top a {
  color: var(--white);
  font-weight: 600;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-decoration: none;
}

.site-logo:hover {
  color: var(--primary-green);
}

.header-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.header-nav a {
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
}

.header-nav a:hover {
  color: var(--primary-green);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gray-light);
  border-radius: 50%;
  color: var(--primary-blue);
  font-size: 0.9rem;
}

.social-links a:hover {
  background-color: var(--primary-green);
  color: var(--white);
}

.search-box {
  display: flex;
  gap: 0.5rem;
}

.search-box input {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(0, 170, 0, 0.1);
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ============================================
   ANUNCIO SUPERIOR
   ============================================ */

.announcement-bar {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 1rem;
  text-align: center;
  font-size: 0.95rem;
}

.announcement-bar a {
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  height: 500px;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1200&h=600&fit=crop');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  font-weight: 900;
}

.hero h1 .highlight {
  color: #FFD700;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta .btn {
  min-width: 180px;
}

@media (max-width: 768px) {
  .hero {
    height: 350px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
}

/* ============================================
   STATS BAR
   ============================================ */

.stats-bar {
  background-color: var(--white);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.stat-icon {
  font-size: 2rem;
  min-width: 50px;
}

.stat-content h3 {
  color: var(--primary-blue);
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.stat-content p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* ============================================
   SECCIONES
   ============================================ */

.section {
  padding: 3rem 0;
}

.section-light {
  background-color: var(--gray-light);
}

.section-title {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary-green);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* ============================================
   TARJETAS
   ============================================ */

.card {
  background-color: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--accent-orange);
  color: var(--white);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 10;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.2rem;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.card-text {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card-cta {
  display: inline-block;
  color: var(--primary-green);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.card-cta:hover {
  color: var(--primary-green-dark);
  text-decoration: underline;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background-color: var(--primary-blue);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.footer-social a:hover {
  background-color: var(--primary-green);
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   UTILIDADES
   ============================================ */

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

.text-white {
  color: var(--white);
}

.bg-light {
  background-color: var(--gray-light);
}

.bg-primary {
  background-color: var(--primary-blue);
}

.bg-green {
  background-color: var(--primary-green);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }

.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }
