/*
* Semiquotewus - Main Stylesheet
* Theme: Eco-minimalist with Triadic Color Scheme
* Framework: Compatible with Tailwind CSS
*/

:root {
  /* Primary Colors - Triadic Scheme */
  --primary: #2E8B57;      /* Sea Green */
  --secondary: #FF6347;    /* Tomato Red */
  --accent: #4169E1;       /* Royal Blue */
  
  /* Background Colors */
  --bg-light: #F5F5F5;
  --bg-white: #FFFFFF;
  --bg-dark: #333333;
  
  /* Text Colors */
  --text-dark: #333333;
  --text-light: #F5F5F5;
  --text-muted: #6B7280;
  
  /* State Colors */
  --primary-hover: #236944;
  --secondary-hover: #D84530;
  --accent-hover: #3450B3;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  
  /* Borders */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  
  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-normal);
}

img {
  max-width: 100%;
  height: auto;
}

/* Global Button Styles */
.btn,
button:not([class]),
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  text-align: center;
  border-radius: var(--border-radius-md);
  transition: background-color var(--transition-normal), transform var(--transition-normal);
  cursor: pointer;
  outline: none;
  border: none;
}

.btn:hover,
button:not([class]):hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
}

.btn:active,
button:not([class]):active,
input[type="submit"]:active {
  transform: translateY(0);
}

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

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

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

.btn-secondary:hover {
  background-color: #f3f4f6;
}

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

.btn-accent:hover {
  background-color: var(--accent-hover);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
header {
  backdrop-filter: blur(5px);
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.logo {
  font-weight: bold;
  display: flex;
  align-items: center;
}

.logo img {
  margin-right: 0.5rem;
}

/* Mobile Menu */
#mobile-menu {
  transition: all var(--transition-normal);
}

/* Hero Section */
#hero {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  color: white;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Section Styles */
section {
  position: relative;
  padding: var(--spacing-xl) 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-weight: bold;
  position: relative;
  display: inline-block;
}

.section-heading h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  margin: 0.5rem auto 1rem;
}

/* Quienes Somos Section */
#quienes-somos .section-heading h2::after {
  background-color: var(--primary);
}

/* Programas Section */
#programas {
  background-color: var(--bg-light);
}

#programas .section-heading h2::after {
  background-color: var(--secondary);
}

/* Cards */
.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: 100%;
}

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

.card-image {
  position: relative;
  overflow: hidden;
}

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

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

.card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.5rem;
  background-color: var(--bg-white);
}

/* Publicaciones Section */
#publicaciones .section-heading h2::after {
  background-color: var(--accent);
}

.carousel {
  position: relative;
  overflow: hidden;
}

#publicaciones-carousel {
  transition: transform var(--transition-normal);
}

/* Team Section */
#equipo {
  background-color: var(--bg-light);
}

#equipo .card-image {
  height: 240px;
}

#equipo .section-heading h2::after {
  background-color: var(--primary);
}

.team-social a {
  display: inline-block;
  margin: 0 0.5rem;
  transition: color var(--transition-normal);
}

.team-social a:hover {
  color: var(--primary);
}

/* Events Section */
#eventos .section-heading h2::after {
  background-color: var(--accent);
}

.event-date {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  color: white;
}

.event-date span:first-child {
  font-size: 2rem;
  font-weight: bold;
}

/* Oportunidades Section */
#oportunidades .section-heading h2::after {
  background-color: var(--secondary);
}

/* Contact Section */
#contacto {
  background-color: var(--bg-light);
}

#contacto .section-heading h2::after {
  background-color: var(--primary);
}

input, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius-md);
  transition: border-color var(--transition-normal);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
}

label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

/* Footer */
footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

footer h3 {
  margin-bottom: 1.5rem;
}

footer ul {
  list-style-type: none;
  padding: 0;
}

footer a {
  color: var(--text-light);
  transition: color var(--transition-normal);
}

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

.footer-social a {
  margin-right: 1rem;
  font-weight: 500;
}

/* Parallax Effect for Hero Images */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: background-position 0.5s ease;
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.success-content {
  max-width: 600px;
  padding: 2rem;
}

/* Content Pages (Privacy, Terms, etc.) */
.content-page {
  padding-top: 100px;
  padding-bottom: 4rem;
}

.content-page h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.content-page h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-page p {
  margin-bottom: 1.5rem;
}

/* Read More Links */
.read-more {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--primary);
  transition: color var(--transition-normal);
}

.read-more:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.read-more svg {
  margin-left: 0.5rem;
  transition: transform var(--transition-normal);
}

.read-more:hover svg {
  transform: translateX(3px);
}

/* Animation Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

/* Animations */
.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.fadeIn {
  animation-name: fadeIn;
}

.slideUp {
  animation-name: slideUp;
}

.pulse {
  animation-name: pulse;
  animation-iteration-count: infinite;
  animation-duration: 2s;
}

/* Media Queries */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .card-image {
    height: 200px;
  }
  
  .event-date {
    padding: 1rem;
  }
}

@media (max-width: 640px) {
  .btn, button:not([class]), input[type="submit"] {
    padding: 0.625rem 1.25rem;
  }
  
  .card-image {
    height: 180px;
  }
  
  #hero {
    background-attachment: scroll;
  }
  
  .parallax {
    background-attachment: scroll;
  }
}

/* AOS Animations Overrides */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* Custom Carousel Controls */
#carousel-prev, #carousel-next {
  opacity: 0.8;
  transition: opacity var(--transition-normal), background-color var(--transition-normal);
}

#carousel-prev:hover, #carousel-next:hover {
  opacity: 1;
  background-color: white;
}