@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body{
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img{
    max-width: 100%;
    display: block;
}

a{
    text-decoration: none;
    color: inherit;
}

ul{
    list-style: none;
}

:root {
        --primary-color: #A7A6C9;
    --primary-dark: #898AC9;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #FAFAFB;
    --bg-alt: #f9fafb;
    --white: #ffffff;

    --font-size-base: 16px;
    --font-size-h1: 2.75rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.25rem;

    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --radius: 8px;
}

.logo{
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-farma{
    color: #898AC9;
}

.logo-conciencia{
    color: #66C2BC;
}

.logo-img {
    height: 36px;
    width: auto;
    display: block;
}

h1, h2, h3 {
    font-weight: bold;
    color: var(--text-color);
    line-height: 1.2;
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); margin-bottom: var(--spacing-md); }
h3 { font-size: var(--font-size-h3); }

p {
    color: var(--text-light);
}

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.header{
    position: sticky;
    top: 0;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 2200px;
    margin: 0 auto;
    background-color: #FDFEFB;
    padding: 1rem var(--spacing-sm);
}

.logo{
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links{
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a{
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover{
    color: var(--primary-color)
}

.menu-toggle{
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
}

.menu-toggle span{
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 0.5vh;

    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--white) 100%);
}

.hero-content {
    max-width: 300px;
}

.hero-content p {
    font-size: 1.15rem;
    margin: var(--spacing-sm) 0 var(--spacing-md);
}

.features {
    max-width: 2000px;
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-xl) var(--spacing-md);
}

.features h2{
    text-align: center;
}

.posts-vermas {
    padding-top: 0.2rem;
    padding-bottom: var(--spacing-md);
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-md);
    text-align: center;
}

.feature-card {
    background-color: var(--bg-alt);
    padding: var(--spacing-md);
    border-radius: var(--radius);
    text-align: left;
    transition: transform 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
}

.about {
    background-color: var(--bg-alt);
    padding: var(--spacing-xl) var(--spacing-sm);
    text-align: center;
}

.about p {
    max-width: 700px;
    margin: 0 auto;
}

.cta {
    background-color: #66C2BC;
    padding: 60px 20px; /* Gives the section room to breathe */
    text-align: center;
}

.cta h2 {
    margin: 0 0 5px 0;
    color: #FAFAFB; /* Matches the dark tone in your screenshot */
    letter-spacing: 1.5px; /* Adds breathing room between letters */
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; /* Makes it nicely bold */
}

.cta p {
    margin: 5px 0;
    font-family: 'Montserrat', sans-serif;
    color: #1a2f4c;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--text-color);
    color: var(--white);
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-sm) var(--spacing-md);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-lg);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    max-width: 320px;
}

.footer-links,
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-links a,
.footer-social a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--white);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }

    .footer-brand .logo {
        justify-content: center;
    }

    .footer-tagline {
        margin: 0 auto;
    }

    .footer-links,
    .footer-social {
        align-items: center;
    }
}

@media (max-width: 768px){
    
    .nav-links{
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
        padding: var(--spacing-md) 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);

        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

        .nav-links.active {
        transform: translateY(0);
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }

    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }
}

.posts-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-sm) var(--spacing-xl);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    min-height: 300px; /* reserva espacio aunque no haya resultados */
    align-content: start;
}

.post-card {
    background-color: #FDFEFB;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.post-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
}

.post-card-body {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-bottom: var(--spacing-sm);
    width: fit-content;
}

.post-card h2 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.post-card h2 a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.post-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.post-excerpt {
    flex-grow: 1;
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    align-self: flex-start;
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

/*sección de barra de búsqueda lol*/
.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    width: 100%;
}

.search-box {
    display: flex;
    align-items: center;
    max-width: 600px;      
    height: 56px;       
    background-color: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 99px;
    padding: 0 0.5rem 0 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    flex-shrink: 0;
}

.search-box:focus-within,
.search-box:hover {
  border-color: var(--primary-color);
  box-shadow: 0 6px 24px rgba(137, 138, 201, 0.15);
}

.search-icon {
  width: 20px;
  height: 20px;
  color: var(--text-light);
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.search-input {
  flex-grow: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text-color);
}

.search-input::placeholder {
  color: var(--text-light);
  opacity: 0.7;
}

.search-btn {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  height: 40px;
  padding: 0 1.4rem;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.25s ease;
  flex-shrink: 0;
}

.search-btn:hover {
  background-color: var(--primary-dark);
}

@media (max-width: 480px) {
  .search-box {
    padding: 0.3rem 0.4rem 0.3rem 1rem;
  }
  
  .search-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

/*sección de sobre nosotras xd*/
.hero-banner {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-banner {
        height: 280px;
    }
}


/* ===== BÚSQUEDA SIN RESULTADOS ===== */
.no-results {
    text-align: center;
    grid-column: 1 / -1;
    padding: var(--spacing-xl) 0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== HOVER EN TÍTULO DE TARJETA (te faltaba este detalle) ===== */
.post-card h2 a:hover {
    color: var(--primary-color);
}

/* ===== ARTÍCULO COMPLETO (pages/post.html) ===== */
.post-hero-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    margin: var(--spacing-md) 0;
}

.post-article-body {
    max-width: 750px;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-sm);
}

.post-article-body h1 {
    margin: var(--spacing-sm) 0;
    line-height: 1.15;
}

.post-content p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.7;
}

.post-content h3 {
    margin: var(--spacing-md) 0 0.75rem;
    font-size: 1.15rem;
    color: var(--text-color);
}

.post-content h3:first-child {
    margin-top: 0;
}

.post-content ul {
    list-style: disc; /* reactiva las viñetas, ya que el reset global las quita */
    margin: 0 0 var(--spacing-sm);
    padding-left: 1.25rem;
}

.post-content ol {
    margin: 0 0 var(--spacing-sm);
    padding-left: 1.25rem;
}

.post-content ol li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.7;
}

.post-content ol li::marker {
    color: var(--primary-color);
    font-weight: 600;
}

.post-content .myth-list {
    list-style: none;
    padding-left: 0;
}

.post-content .myth-list li {
    background-color: #5F5D98;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #FAFAFB; /* antes heredaba var(--text-color), muy oscuro para este fondo */
}

.post-content .myth-list li strong {
    color: #66C2BC; /* mismo tono claro que usas en el resto del sitio para texto sobre fondos oscuros */
}

.post-content li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
    color: var(--text-color);
    font-size: 1.05rem; /* mismo tamaño que tus párrafos de post-content */
    line-height: 1.7;
}

.post-content li::marker {
    color: var(--primary-color);
}

.post-highlight {
    background-color: var(--bg-alt);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    font-style: italic;
    margin-top: var(--spacing-sm) !important;
}

.post-not-found {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

@media (max-width: 768px) {
    .post-hero-img {
        height: 240px;
    }
}

.cta .flexbox {
    display: flex;
    width: 100%;
    max-width: 1100px; /* Prevents it from stretching too far on ultra-wide screens */
    margin: 0 auto;
    justify-content: space-evenly;
    align-items: center; /* Aligns items vertically in the center */
    gap: 40px;
}

.cta .element {
    flex: 1;
}

/* Social Buttons Row */
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

/* Button Styling */
.btn.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Space between the icon and the text */
    background-color: #898AC9; /* The soft purple/blue from the screenshot */
    color: #ffffff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn.btn-primary:hover {
    background-color: #5F5D98;
    transform: translateY(-2px); /* Slight lift effect on hover */
}

/* Image Styling */
.cta .image-right img {
    width: 100%;
    max-width: 350px; /* Keeps the phone mockup sized appropriately */
    height: auto;
    border-radius: 8px; /* Smooth corners */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); /* Adds a clean, modern shadow */
}

/* --------------------------------------
   Mobile Responsiveness
   -------------------------------------- */
@media (max-width: 768px) {
    .cta .flexbox {
        flex-direction: column; /* Stacks the text and image vertically */
        gap: 40px;
    }
    
    .cta .image-right img {
        max-width: 100%; /* Allows image to fill mobile screen nicely */
    }

    .social-buttons {
        flex-direction: column; /* Stacks buttons on very small screens */
        align-items: center;
    }
    
    .btn.btn-primary {
        width: 100%; /* Makes buttons full-width for easier tapping on mobile */
        max-width: 250px;
    }
}

.farmaconciencia-desc{
    background-color: #FAFAFB;
    padding: 60px 20px; /* Gives the section room to breathe */
    text-align: center;
}

.farmaconciencia-desc .flexbox{
    display: flex;
    width: 100%;
    max-width: 1100px; /* Prevents it from stretching too far on ultra-wide screens */
    margin: 0 auto;
    justify-content: space-evenly;
    align-items: center; /* Aligns items vertically in the center */
    gap: 40px;
}

.farmaconciencia-desc .element{
    flex: 1;
}

.farmaconciencia-desc .image-right img {
    width: 100%;
    max-width: 350px; /* Keeps the phone mockup sized appropriately */
    height: auto;
    border-radius: 8px; /* Smooth corners */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); /* Adds a clean, modern shadow */
}

.farmaconciencia-desc h2 {
    margin: 0 0 5px 0;
    letter-spacing: 1.5px; /* Adds breathing room between letters */
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; /* Makes it nicely bold */
}

.farmaconciencia-desc p {
    margin: 5px 0;
    color: #1a2f4c;
}

@media (max-width: 768px) {
    .farmaconciencia-desc .flexbox {
        flex-direction: column; /* Stacks the text and image vertically */
        gap: 40px;
    }
    
    .farmaconciencia-desc .image-right img {
        max-width: 100%; /* Allows image to fill mobile screen nicely */
    }
}

/*Prueba*/
.grid-container {
  aspect-ratio: 1 / 1;
  width: clamp(100px, 25vw, 200px);
  border-radius: 50%; /* Apply border-radius to create a circular shape */
  background-color: #FAFAFB;
  overflow: hidden;
}

/*Esta parte hace que los DIVs bajo wrapper se queden en una sección
especifica del layout de la pagina para que no se rompan conforme
los demás elementos*/
.grid_nosotras-wrapper{
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 4rem;
}

/*Esta parte hace que los objetos dentro del wrapper se puedan apilar de
manera horizontal y mantengan esas propiedas para ser todos elementos de 
un mismo conjunto/layout */
.grid_nosotras{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
}


.image_nosotras {
  width: 100%;
  height: 100%;
  object-fit: cover; /* la imagen se recorta en vez de estirarse */
  object-position: center;
  display: block;
}

.team-section {
  text-align: center;
  padding: 2rem 1rem;
  width: 100%;
  background-color: #66C2BC;
  overflow: hidden;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.team-member h3{
    color: #FAFAFB;
    margin: 0;
  text-align: center;
}

.team-section h2{
    font-weight: bold;
    color: #FAFAFB;
}

@media (max-width: 768px) {
  .grid_nosotras-wrapper {
    padding: 0 1.5rem;
  }
}