@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Variables */
:root {
  --dark: #333;
  --font: 'Poppins', sans-serif;
}

h1 {
  font-size: 32px;
  font-weight: 700;
}

@media (max-width: 768px) {
  h1 {
    font-size: 26px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #222;
}

.container {
  width: 85%;
  max-width: 1100px;
  margin: 0 auto;
}

.blog-section {
  padding: 60px 20px;
  background-color: transparent;
  text-align: center;
}

.blog-header {
  margin-bottom: 50px;
}

.blog-header h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  color: #333;
  font-weight: 700;
}

.blog-header p {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.blog-section h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #333;
}

/* Tarjetas del Blog */
.blog-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.blog-card {
  background-color: white;
  border-radius: 20px; 
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #f0f0f0;
}

.blog-card:hover {
  transform: translateY(-10px);

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #f97109;
}

.blog-card:hover img {
  transform: scale(1.05);
}

.card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.card-meta .date {
  color: #888;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-meta .category {
  background-color: rgba(249, 113, 9, 0.1);
  color: #f97109; 
  padding: 5px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #0d1c2f;
  line-height: 1.3;
  font-weight: 800;
}

.card-content p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

.card-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.btn-read {
  background-color: #0d1c2f; 
  color: white;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.3s;
  flex: 1;
  text-align: center;
}

.btn-read:hover {
  background-color: #f97109; 
}

/* Botón WhatsApp */
.btn-contact {
  background-color: #25D366;
  color: white;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1.1rem; 
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px; 
}

.btn-contact:hover {
  background-color: #128c7e;
  transform: scale(1.1);
}


@media (max-width: 480px) {
  .blog-container {
    padding: 20px;
  }
  .card-actions {
    flex-direction: row;
  }
}

/* --- DISEÑO DE PREGUNTAS FRECUENTES ESTÉTICO --- */
:root {
  --primary-orange: #f99109;
  --text-dark: #2d3436;
  --text-gray: #636e72;
  --bg-white: #ffffff;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
  --border-color: #f0f0f0;
}

.faq-section {
  padding: 60px 20px;
  background-color: #fdfdfd;
}

.faq-section h2 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 50px;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-soft);
}

/* Botón de la Pregunta */
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.faq-question i {
  color: var(--primary-orange);
  font-size: 1rem;
  transition: transform 0.4s ease;
}

/* ESTADO ACTIVO */
.faq-item.active {
  border: 2px solid var(--primary-orange);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(249, 145, 9, 0.1);
}

.faq-item.active .faq-question {
  color: var(--primary-orange);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* Panel de Respuesta */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  opacity: 0;
  transition: all 0.4s ease;
  color: var(--text-gray);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 800px; 
  padding-bottom: 24px;
  opacity: 1;
}

.faq-answer ul, .faq-answer ol {
  margin-top: 15px;
  padding-left: 20px;
}

.faq-answer li {
  margin-bottom: 8px;
}

.faq-answer strong {
  color: var(--text-dark);
}

.faq-answer a {
  color: var(--primary-orange);
  font-weight: 700;
  text-decoration: none;
}

.faq-item:hover:not(.active) {
  border-color: var(--primary-orange);
  background-color: rgba(249, 145, 9, 0.02);
}

/* Responsivo */
@media (max-width: 768px) {
  .faq-question {
    padding: 20px;
    font-size: 1rem;
    gap: 15px;
  }
  
  .faq-section h2 {
    font-size: 1.8rem;
  }
}

/* Modales para Artículos */
.article-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: slideIn 0.3s ease;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  color: #999;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #333;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
  .blog-container {
    flex-direction: column;
    align-items: center;
  }

  .faq-question {
    font-size: 1rem;
  }

  .scrollToHome {
    width: 50px;
    height: 50px;
    font-size: 18px;
    line-height: 50px;
    border-radius: 18px;
    bottom: 18px;
    right: 18px;
  }
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer p {
    margin: 0 0 15px 0;
    font-size: 1rem;
    font-weight: 400;
}

.redes-sociales {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.redes-sociales a {
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
}

.redes-sociales a:hover {
    color: var(--primary);
    background: rgba(251, 159, 46, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(251, 159, 46, 0.3);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 100;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: white;
    font-size: 24px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.scrollToHome {
    border-radius: 20px;
    background: linear-gradient(135deg, #f49d32, #ff6b35);
    bottom: 20px;
    color: #ffffff;
    display: none;
    font-size: 20px;
    height: 55px;
    line-height: 55px;
    padding: 0;
    position: fixed;
    right: 20px;
    text-align: center;
    width: 55px;
    z-index: 99999;
    box-shadow: 0 8px 25px rgba(244, 157, 50, 0.4);
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    -webkit-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.scrollToHome:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, #ff6b35, #e8890b);
    box-shadow: 0 12px 35px rgba(244, 157, 50, 0.6);
    color: #ffffff;
}

.scrollToHome:active {
    transform: translateY(-1px) scale(1.02);
    transition: all 0.1s ease;
}

/* Footer responsivo */
@media (max-width: 768px) {
    footer {
        padding: 25px 15px;
    }
    
    footer p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .redes-sociales {
        gap: 15px;
    }
    
    .redes-sociales a {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 22px;
        bottom: 15px;
        left: 15px;
    }
}

/* Footer para móviles pequeños */
@media (max-width: 480px) {
    footer {
        padding: 20px 10px;
    }
    
    footer p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .redes-sociales {
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .redes-sociales a {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 12px;
        left: 12px;
    }
}

@media (max-width: 480px) {
  .scrollToHome {
    width: 45px;
    height: 45px;
    font-size: 16px;
    line-height: 45px;
    border-radius: 15px;
    bottom: 15px;
    right: 15px;
  }

  .scrollToHome:hover {
    transform: translateY(-2px) scale(1.03);
  }
}

/*celulares pequeños */
@media (max-width: 768px) {
    header .container {
        justify-content: space-between;
    }
    
}

@media (max-width: 768px) {
  .blog-section {
    padding-top: 0;
  }
}
