/* ============================================
   ESTILOS PRINCIPALES DEL PERIÓDICO
   ============================================ */

:root {
  --color-primary: #044535;
  --color-secondary: #ffc400;
  --color-dark: #212121;
  --color-light: #f5f5f5;
  --color-white: #ffffff;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */
.periodico-container {
  display: flex;
  min-height: 100vh;
  background: #f8f9fa;
}

.periodico-main {
  flex: 1;
  transition: var(--transition);
  padding-top: 0;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-periodico {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, #2a5f37 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
  margin-bottom: 60px;
}

.hero-periodico::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,170.7C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>')
    no-repeat bottom;
  background-size: cover;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 50%,
    transparent 0%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero-icon {
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

.hero-icon i {
  font-size: 5rem;
  color: var(--color-secondary);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
}

.hero-subtitle {
  font-size: 1.3rem;
  font-style: italic;
  margin: 0 0 40px;
  opacity: 0.95;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 25px 35px;
  border-radius: 15px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  min-width: 150px;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.stat-item i {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 10px;
  color: var(--color-secondary);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   WELCOME SECTION
   ============================================ */
.welcome-section {
  padding: 60px 20px;
  background: white;
}

.welcome-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 3px solid var(--color-secondary);
}

.welcome-icon {
  margin-bottom: 25px;
}

.welcome-icon i {
  font-size: 4rem;
  color: var(--color-primary);
  animation: pulse 2s infinite;
}

.welcome-card h2 {
  font-size: 2.2rem;
  color: var(--color-dark);
  margin: 0 0 20px;
  font-weight: 700;
}

.welcome-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #424242;
  margin: 0 0 30px;
  text-align: justify;
}

.welcome-features {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: var(--color-dark);
  font-weight: 500;
}

.feature-item i {
  color: var(--color-primary);
  font-size: 1.5rem;
}

/* ============================================
   DESTACADAS SECTION
   ============================================ */
.destacadas-section {
  padding: 60px 20px;
  background: #f8f9fa;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title-main {
  font-size: 2.5rem;
  color: var(--color-dark);
  margin: 0 0 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.section-title-main i {
  color: var(--color-secondary);
  font-size: 3rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #616161;
  font-style: italic;
}

.destacadas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.destacada-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 2px solid transparent;
}

.destacada-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-secondary);
}

.destacada-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.destacada-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.destacada-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.destacada-card:hover .destacada-image img {
  transform: scale(1.1);
}

.destacada-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.destacada-badge {
  background: var(--color-secondary);
  color: var(--color-dark);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.destacada-badge i {
  font-size: 1rem;
}

.destacada-content {
  padding: 25px;
}

.destacada-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.destacada-categoria {
  background: var(--color-primary);
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.destacada-fecha {
  font-size: 0.85rem;
  color: #757575;
  display: flex;
  align-items: center;
  gap: 5px;
}

.destacada-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 15px;
  line-height: 1.3;
  transition: var(--transition);
}

.destacada-card:hover .destacada-title {
  color: var(--color-primary);
}

.destacada-excerpt {
  font-size: 0.95rem;
  color: #616161;
  line-height: 1.6;
  margin: 0 0 20px;
}

.destacada-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.destacada-author {
  font-size: 0.85rem;
  color: #757575;
  display: flex;
  align-items: center;
  gap: 5px;
}

.destacada-read-more {
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.destacada-card:hover .destacada-read-more {
  gap: 10px;
}

.no-destacadas {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #757575;
}

.no-destacadas i {
  font-size: 4rem;
  color: #bdbdbd;
  margin-bottom: 20px;
}

.no-destacadas p {
  font-size: 1.1rem;
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team-section {
  padding: 60px 20px;
  background: white;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}
.team-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 35px 25px;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
  transition: var(--transition);
}

.team-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.team-avatar {
  width: 100px;
  height: 100px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 4px solid var(--color-secondary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.team-avatar i {
  font-size: 3rem;
  color: white;
}

.team-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 5px;
}

.team-role {
  font-size: 0.95rem;
  color: var(--color-primary);
  font-weight: 600;
  margin: 0 0 15px;
}

.team-specialties {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.specialty-tag {
  background: #e8f5e9;
  color: var(--color-primary);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #2a5f37 100%);
}

.cta-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: white;
}

.cta-icon {
  margin-bottom: 25px;
}

.cta-icon i {
  font-size: 4rem;
  color: var(--color-secondary);
  animation: bounce 2s infinite;
}

.cta-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 20px;
}

.cta-text {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0 0 35px;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-cta {
  padding: 0 35px;
  height: 50px;
  line-height: 50px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: none;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

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

.btn-primary:hover {
  background: #ffcd33;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
  background: #f5f5f5;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media screen and (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .stat-item {
    padding: 20px 25px;
    min-width: 120px;
  }
}

@media screen and (max-width: 768px) {
  .periodico-main {
    margin-left: 0 !important;
  }

  .hero-periodico {
    padding: 60px 15px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-stats {
    gap: 20px;
  }

  .section-title-main {
    font-size: 2rem;
    flex-direction: column;
    gap: 10px;
  }

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

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

  .cta-title {
    font-size: 1.8rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-cta {
    width: 100%;
    justify-content: center;
  }
}

@media screen and (max-width: 480px) {
  .welcome-card {
    padding: 30px 20px;
  }

  .welcome-features {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-icon i {
    font-size: 3.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}
