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

:root {
  --primary: #1e293b;        /* azul oscuro */
  --primary-dark: #0f172a;   /* aún más oscuro para hover */
  --secondary: #fbbf24;      /* amarillo como color secundario */
  --accent: #fbbf24;         /* alias de amarillo para destacar */
  --light: #f8fafc;          /* gris muy claro */
  --dark: #0f172a;           /* gris/azul muy oscuro */
  --white: #ffffff;          /* blanco */
  --gray: #64748b;           /* gris medio */
  --text: #1e293b;           /* texto base en azul oscuro */
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

/* ===================== BASE ===================== */
body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
}

h1, h2, h3, h4, h5 {
  font-family: 'Poppins', sans-serif;
  margin-bottom: 1rem;
  color: var(--dark);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ===================== BUTTONS & HERO ACTIONS ===================== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--secondary);
  color: var(--white);
  border: 2px solid var(--secondary);
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.btn:hover {
  background: transparent;
  color: var(--secondary);
  transform: translateY(-3px);
}

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

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

/* ===================== HERO SECTION ===================== */
.hero {
  background:
    linear-gradient(rgba(78,156,175,0.8),rgba(78,156,175,0.8)),
    url('{{ url_for('images.images', filename='imanh.jpg') }}')
    center/cover no-repeat;
  padding: 120px 0;
  text-align: center;
  color: var(--white);
}

.hero h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.5rem;
  max-width: 700px;
  margin: 0 auto 30px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.hero-actions .btn {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--white);
  padding: 10px 20px;
  width: auto;
}

.hero-actions .btn:hover {
  background-color: var(--white);
  color: var(--primary);
  border-color: var(--primary);
}

/* ===================== SECTION TITLES ===================== */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2.5rem;
  position: relative;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--secondary);
}

.section-title p {
  font-size: 1rem;
  color: var(--text);
}

/* ===================== ABOUT SECTION ===================== */
.about-section {
  margin: 50px auto;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.about-hero {
  height: 400px;
  background:
    linear-gradient(rgba(78,156,175,0.7),rgba(78,156,175,0.7)),
    url('https://images.unsplash.com/photo-1587300003388-59208cc962cb?auto=format&fit=crop&w=1500&q=80')
    center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 20px;
}

.about-hero-content {
  max-width: 800px;
  z-index: 2;
}

.about-hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.about-hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}
.about-hero-content .btn {
  margin-top: 130px; /* mueve el botón hacia abajo */
}
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 50px;
  background: var(--white);
}

.about-text h2 {
  color: var(--primary);
  font-size: 2.2rem;
  margin-bottom: 20px;
  position: relative;
}

.about-text h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--secondary);
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.features-grid {
  display: grid;
  gap: 25px;
}

.feature-item {
  display: flex;
  gap: 15px;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(78,156,175,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.feature-content h3 {
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.feature-content p {
  font-size: 1rem;
  color: #555;
}

/* ===================== SERVICES & PRODUCT CARDS ===================== */
.services,
.products {
  padding: 80px 0;
  background: var(--white);
}

.services-grid,
.products-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.service-card,
.product-card,
.testimonial-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.service-card:hover,
.product-card:hover,
.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-card i,
.product-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.service-card h3,
.product-info h3 {
  font-size: 1.5rem;
  margin: 10px 0 5px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text);
}
 
        
      
        
        /* Modal de agendamiento */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            overflow-y: auto;
            padding: 20px;
        }
        
        .modal-content {
            background: var(--white);
            border-radius: 12px;
            max-width: 600px;
            margin: 40px auto;
            padding: 30px;
            position: relative;
            box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
        }
        
        .close-modal {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 1.5rem;
            color: var(--gray);
            cursor: pointer;
            transition: color 0.3s;
        }
        
        .close-modal:hover {
            color: var(--dark);
        }
        
        .modal-title {
            text-align: center;
            margin-bottom: 25px;
            color: var(--primary);
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--dark);
        }
        
        .form-control {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-family: 'Poppins', sans-serif;
            font-size: 1rem;
        }
        
        .form-control:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(78, 156, 175, 0.2);
        }
        
        .form-row {
            display: flex;
            gap: 15px;
        }
        
        .form-row .form-group {
            flex: 1;
        }
        
        .modal-actions {
            display: flex;
            justify-content: space-between;
            margin-top: 25px;
        }
        
        .whatsapp-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            background: #25D366;
            color: white;
            padding: 12px 20px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 500;
            transition: background 0.3s ease;
        }
        
        .whatsapp-btn:hover {
            background: #128C7E;
        }
        
        .whatsapp-btn i {
            margin-right: 8px;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
    .modal-content {
        padding: 15px;
        margin: 20px auto;
        max-width: 95%;
        box-sizing: border-box;
    }

    .modal-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .form-control {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .modal-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }

    .whatsapp-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .close-modal {
        font-size: 1.2rem;
        top: 10px;
        right: 10px;
    }
}

/* ===================== PRODUCT-CARD SPECIFIC ===================== */
/* === Productos Destacados === */
.products {
  background: linear-gradient(to bottom, var(--white), var(--light));
  padding: 80px 30px;
  font-family: 'Poppins', sans-serif;
}

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

.products .section-title h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.products .section-title p {
  font-size: 1.2rem;
  color: var(--text);
  opacity: 0.8;
}

/* Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Card */
.product-card {
  position: relative;
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Etiqueta */
.featured-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: var(--white);
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: opacity 0.4s ease, transform 0.4s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card:hover .featured-tag {
  opacity: 0;
  transform: translateY(-12px);
}

/* Imagen */
.product-img {
  height: 240px;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img {
  transform: scale(1.06);
}

/* Info */
.product-info {
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 190px;
}

.product-rating {
  margin-bottom: 10px;
  height: 20px;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 18px;
}

/* Botón */
.hero-actions {
  margin-top: auto;
}

.hero-actions .btn {
  display: inline-block;
  background: transparent;
  color: var(--primary);
  padding: 10px 22px;
  border: 1.5px solid var(--primary);
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.hero-actions .btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}
/* ===================== TESTIMONIALS ===================== */
.testimonials {
  padding: 80px 0;
  background: var(--light);
}

.testimonials-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
}

.testimonial-text::before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  top: -20px; left: -15px;
  color: var(--primary);
  opacity: 0.2;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-img {
  width: 60px; height: 60px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  margin-right: 15px;
}

.author-info h4 {
  margin-bottom: 5px;
}

/* ===================== CONTACT ===================== */
.contact {
  padding: 80px 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  gap: 50px;
  grid-template-columns: 1fr 1fr;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  margin-bottom: 20px;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-right: 15px;
  min-width: 30px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
}

.contact-form textarea {
  height: 150px;
}

/* ===================== FOOTER ===================== */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-bottom: 40px;
}

.footer-col h3 {
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 50px; height: 2px;
  background: var(--secondary);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li + li {
  margin-top: 10px;
}

.footer-col ul li a {
  color: #bbb;
  text-decoration: none;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.social-links {
  display: flex;
  margin-top: 20px;
}

.social-links a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 10px;
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--secondary);
  transform: translateY(-5px);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #aaa;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
  .about-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero h2 { font-size: 2.5rem; }
  .hero p { font-size: 1.2rem; }
  .about-hero { height: 350px; }
  .about-hero h1 { font-size: 2.3rem; }
  .product-card { height: 350px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  .section-title h2 { font-size: 2.2rem; }
}

@media (max-width: 480px) {
  .hero { padding: 80px 0; }
  .section-title h2 { font-size: 1.8rem; }
  .section-title p { font-size: 1.1rem; }
  .products-grid { grid-template-columns: 1fr; }
}

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

.hero .container {
  animation: fadeInUp 1s ease-out;
}
.modal-close {
    display: none;
}
/* ===== Perfil / Dropdown ===== */
.profile-wrapper { position: relative; }

.profile-wrapper > a#profileBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  text-decoration: none;
}

/* Caja del menú */
.profile-dropdown{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  padding: 16px;
  display: none;              /* se muestra con JS al hacer click */
  z-index: 3000;
  overflow: visible;          /* evita cortes del contenido interno */
}

/* Flechita */
.profile-dropdown::before{
  content:"";
  position:absolute;
  top:-8px; right:18px;
  border: 8px solid transparent;
  border-bottom-color:#fff;
}

/* Texto dentro del dropdown */
.profile-dropdown .dropdown-content p{
  margin: 0 0 8px 0;
  color: var(--dark);
}

/* Botón Cerrar sesión: que sea BLOQUE y visible */
.profile-dropdown .btn-logout{
  display: block;                 /* <- evita el “corte” */
  margin-top: 10px;
  width: 100%;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary-dark);
  transition: var(--transition);
}

.profile-dropdown .btn-logout:hover{
  background: var(--primary-dark);
}

/* Si tenés un overlay o header con z-index alto, que no tape el menú */
header, .header-container { position: relative; z-index: 2000; }