/* GOOGLE FONTS ---------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans&family=Poppins:wght@400;600;700&display=swap');

/* ROOT VARIABLES -------------------------------------------------- */
:root {
  --primary: #7AC7A9;
  --primary-light: #4BAF8E;
  --primary-dark: #5DAF94;
  --secondary: #F6EAC2;
  --background: #FFF9F0;
  --text-dark: #37474F;
  --accent: #D4A373;
  --white: #ffffff;

  --adopt-bg: #e8f3e5;
  --volunteer-bg: #f8f8f8;
  --stories-bg: #f7f3c8;
  --story-card-bg: #fff7db;

  --radius-section: 12px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(122,199,169,0.25);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* LANGUAGE SELECTOR ------------------------------------------------ */

#selector-idiomas{
    position: fixed;
    top: 90px;
    right: 30px;
    font-family: 'Poppins', sans-serif;
    z-index: 999;
}

/* Idioma actual */

.lang-selected{
    background: var(--white);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: var(--radius-section);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    transition: var(--transition);
}

.lang-selected:hover{
    box-shadow: var(--shadow-md);
}

/* Menú desplegable */

.lang-options{
    display: none;
    flex-direction: column;
    margin-top: 6px;
    background: var(--white);
    border-radius: var(--radius-section);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* hover abrir */

#selector-idiomas:hover .lang-options{
    display: flex;
}

/* cada boton */

.lang-options button{
    border: none;
    background: transparent;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
}

.lang-options button:hover{
    background: var(--secondary);
}

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

body {
  font-family: 'Poppins', 'Open Sans', sans-serif;
  background: var(--background);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

main {
  max-width: 2000px;
  margin: auto;
  padding: 60px 30px;
}

/* SHARED SECTIONS ------------------------------------------------ */
section {
  margin-bottom: 80px;
  border-radius: var(--radius-section);
  text-align: center;
  padding: 80px 40px;
}

.about, .volunteer, .adopt_section, .stories {
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}

/* HERO SECTION -------------------------------------------------- */
.container {
  position: relative;
  width: 100%;
  height: 65vh;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-section);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 80px;
}

.container img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(55%);
  z-index: 1;
  transition: transform 8s ease;
}

.container:hover img {
  transform: scale(1.05);
}

.container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(122,199,169,0.4),
    rgba(255,167,38,0.3) 50%,
    rgba(212,163,115,0.4));
  z-index: 2;
}

.container .text {
  position: relative;
  z-index: 3;
  color: white;
  text-align: center;
  animation: fadeInUp 1s;
  max-width: 800px;
  padding: 0 20px;
}

.container .text h2 {
  font-size: clamp(2rem,5vw,3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 2px 4px 12px rgba(0,0,0,0.4);
}

.container .text p {
  font-size: clamp(1rem,2.5vw,1.4rem);
  color: #FFF3E0;
  text-shadow: 1px 2px 8px rgba(0,0,0,0.3);
}

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

/* ABOUT SECTION ------------------------------------------------- */
.about {
  background: linear-gradient(135deg, var(--white), var(--secondary));
  box-shadow: var(--shadow-md);
}

.about h2 {
  color: var(--primary);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
}

.about h2::after {
  content: "";
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
}

p {
  margin-bottom: 18px;
  line-height: 1.8;
  font-size: 1.05rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* VOLUNTEER SECTION -------------------------------------------- */
.volunteer.hero-style {
  position: relative;
  width: 100%;
  min-height: 500px;
  color: var(--white);
  border-radius: var(--radius-section);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  text-align: center;
}

/* Background image */
.volunteer.hero-style .bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(55%);
  z-index: 1;
  transition: transform 8s ease;
}

.volunteer.hero-style:hover .bg-img {
  transform: scale(1.05);
}

/* Gradient overlay */
.volunteer.hero-style::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(122,199,169,0.4),
      rgba(255,167,38,0.3) 50%,
      rgba(212,163,115,0.5));
  z-index: 2;
}

/* Text content */
.volunteer.hero-style .content {
  position: relative;
  z-index: 3;
  max-width: 900px;
}

.volunteer.hero-style h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 20px;
  text-shadow: 2px 3px 12px rgba(0,0,0,0.4);
}

.volunteer.hero-style p {
  color: #f3f3f3;
  margin-bottom: 15px;
  text-shadow: 1px 2px 6px rgba(0,0,0,0.4);
}

.volunteer_button {
  margin-top: 20px;
  z-index: 5;
}

/* VIDEO SECTION ----------------------------------------------- */
.video-section {
  background: linear-gradient(135deg, var(--white), var(--secondary));
  box-shadow: var(--shadow-md);
  max-width: 1300px;
  margin: 0 auto 80px;
}

.video-section h2 {
  color: var(--primary);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
}

.video-section h2::after {
  content: "";
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
}

.video-section p {
  margin-bottom: 40px;
  color: #4b5c4f;
}

.video-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}


.video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

.video-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(122,199,169,0.15),
    rgba(212,163,115,0.15)
  );
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.video-wrapper:hover::after {
  opacity: 1;
}


/* ADOPT SECTION ------------------------------------------------- */
.adopt_section {
  background-color: var(--adopt-bg);
  padding: 60px 20px;
  border-radius: var(--radius-section);
  margin: 60px auto;
  max-width: 1300px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.adopt_header h2 {
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.adopt_header p {
  color: #4b5c4f;
}

/* PET CARDS ----------------------------------------------------- */
.card_container {
  display: flex;
  flex-wrap: wrap; 
  gap: 35px; 
  max-width: 1200px; 
  margin: 40px auto 0; 
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pet_card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.pet_card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(122,199,169,0.35);
}

.pet_card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  transition: var(--transition);
}

.pet_card:hover img {
  transform: scale(1.05);
}

.adopt_button {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 10px 24px;
  border-radius: 10px;
  margin-top: 15px;
  box-shadow: var(--shadow-sm);
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.adopt_button:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: translateY(-2px);
}

.adopt_button_wrapper{
  margin-top: 50px;
}

/* STORIES SECTION --------------------------------------------- */
.stories {
  background-color: var(--stories-bg);
  text-align: center;
  padding: 80px 20px;
  border-radius: var(--radius-section);
}

.stories h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--primary);
}

.stories_container {
  display: flex;
  flex-wrap: wrap;
  gap: 35px;
  max-width: 1200px;
  margin: 40px auto 0;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.story {
  background: var(--story-card-bg);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.story:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(212,163,115,0.3);
}

.story img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  transition: var(--transition);
}

.story:hover img {
  transform: scale(1.05);
}

.story p {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
}

/* CALL TO ACTION ----------------------------------------------- */
section.cta {
  background: linear-gradient(135deg, #8cdbbd,#e8f3e5,#b0e69a );
  color: white;
  padding: 80px 20px;
  border-radius: var(--radius-section);
  box-shadow: var(--shadow-lg);
}
section.cta h3 {
  font-size: clamp(2rem,4vw,3rem);
  margin-bottom: 30px;
}


/* BUTTONS ------------------------------------------------------- */
.btn, .btn-outline {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: var(--transition);
  margin: 0 auto;
}

.btn {
  background: #8cdbbd;;
  color: white;
  padding: 15px 35px;
  box-shadow: var(--shadow-md);
}

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

.btn-outline {
  background: white;
  color: var(--primary);
  padding: 13px 33px;
  border: 2px solid white;
}

.btn-outline:hover {
  background: transparent;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(255,255,255,0.3);
}

/* RESPONSIVE ---------------------------------------------------- */
@media (max-width: 768px) {
  main { 
    padding: 30px 20px; 
  }

  section { 
    padding: 50px 25px; 
    margin-bottom: 50px; 
    border-radius: 15px; 
  }

  .container { 
    height: 50vh; 
    min-height: 350px; 
  }

  .container 
  .text h2 { 
    font-size: 2rem; 
  }
}

@media (max-width: 480px) {
  main { 
    padding: 20px 15px; 
  }

  section { 
    padding: 40px 20px; 
    margin-bottom: 40px; 
  }

  .container { 
    height: 40vh; 
    min-height: 300px; 
  }

  .container 
  .text h2 { 
    font-size: 1.5rem; 
  }

  .card_container, 
  .stories_container { 
    grid-template-columns: 1fr; 
  }

  .pet_card img { 
    height: 200px; 
  }

  .story img { 
    height: 200px; 
  }
}
