/* 
  STITCH PREMIUM UI SYSTEM v2.0
  =============================
  Brand Colors: Cyan (#00B4D8) | Ocean Blue (#0077B6) | Navy (#03045E)
  Concept: "Medical Luxury" - Clean, Trustworthy, Modern.
*/

:root {
    /* --- COLOR PALETTE --- */
    --stitch-cyan: #00B4D8;
    --stitch-cyan-glow: rgba(0, 180, 216, 0.5);
    --stitch-blue: #0077B6;
    --stitch-navy: #03045E;
    --stitch-bg-light: #F8FBFD; /* Clinical White */
    --stitch-text-dark: #2B2D42;
    
    /* --- SHADOWS & GLASS --- */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 119, 182, 0.15); /* Tinted Shadow */
    
    /* --- WHATSAPP --- */
    --wa-green: #25D366;
    --wa-dark: #128C7E;
}

/* =========================================
   1. GLOBAL REFINEMENTS
   ========================================= */
body {
    background-color: var(--stitch-bg-light);
    color: var(--stitch-text-dark);
}

h1, h2, h3 {
    letter-spacing: -0.03em; /* Modern tight tracking */
}

section {
    padding: 5rem 0; /* More breathing room */
}

/* =========================================
   2. HERO SECTION ENHANCEMENTS
   ========================================= */
.hero-slider .swiper-slide {
    /* Darker overlay for better text readability */
    box-shadow: inset 0 0 0 1000px rgba(3, 4, 94, 0.3); 
}

.hero-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
}

.hero-content .highlight-text {
    color: var(--stitch-cyan);
    position: relative;
    display: inline-block;
}

/* Underline effect for keywords */
.hero-content .highlight-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--stitch-cyan);
    opacity: 0.3;
    border-radius: 4px;
    z-index: -1;
}

/* =========================================
   3. PREMIUM CARDS (Glassmorphism)
   ========================================= */
/* =========================================
   3. PREMIUM CARDS (Glassmorphism)
   ========================================= */
.sintoma-card,
.division-card,
.value-card,
.treatment-card,
.beneficio-card,
.advantage-card,
.detailed-card,
.faq-item,
.contact-card,
.case-card,
.process-step,
.condition-category,
.check-item {
    background: #FFFFFF;
    border-radius: 20px;
    border: 1px solid rgba(0, 119, 182, 0.05); /* Subtle Blue Border */
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: 100%; /* Uniform height */
}

/* Hover Effects */
.sintoma-card:hover,
.division-card:hover,
.treatment-card:hover,
.beneficio-card:hover,
.advantage-card:hover,
.detailed-card:hover,
.faq-item:hover,
.contact-card:hover,
.case-card:hover,
.process-step:hover,
.condition-category:hover,
.check-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--stitch-cyan-glow);
}

/* Hover Gradient Accent */
.sintoma-card::before,
.division-card::before,
.beneficio-card::before,
.advantage-card::before,
.detailed-card::before,
.process-step::before,
.condition-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--stitch-blue), var(--stitch-cyan));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sintoma-card:hover::before,
.division-card:hover::before,
.beneficio-card:hover::before,
.advantage-card:hover::before,
.detailed-card:hover::before,
.process-step:hover::before,
.condition-category:hover::before {
    opacity: 1;
}

/* Icons Animation */
.icon-large,
.division-icon,
.treatment-icon,
.beneficio-icon,
.advantage-icon,
.card-icon,
.step-icon,
.category-icon,
.contact-icon,
.case-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.sintoma-card:hover .icon-large,
.beneficio-card:hover .beneficio-icon,
.advantage-card:hover .advantage-icon,
.detailed-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

/* =========================================
   4. BUTTONS (High Conversion)
   ========================================= */
.btn-primary {
    background: linear-gradient(135deg, var(--stitch-blue) 0%, var(--stitch-cyan) 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px; /* Pill shape */
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.5);
    background: linear-gradient(135deg, var(--stitch-navy) 0%, var(--stitch-blue) 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15); /* Glass button */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    border-radius: 50px;
    padding: 1rem 2.5rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* =========================================
   5. FLOATING WHATSAPP (Stitch Exclusive)
   ========================================= */
.stitch-floating-wa {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stitch-wa-btn {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4), 
              0 5px 10px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.2);
}

.stitch-wa-btn:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

.stitch-wa-btn svg {
  width: 35px;
  height: 35px;
  fill: white;
  transition: transform 0.3s ease;
}

.stitch-wa-btn:hover svg {
  transform: rotate(15deg) scale(1.1);
}

/* Pulse Animation */
.stitch-wa-btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0;
  animation: stitch-pulse 2s infinite;
}

@keyframes stitch-pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Tooltip */
.stitch-wa-btn[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 80px;
  background: white;
  color: var(--stitch-text-dark);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.stitch-wa-btn:hover[data-tooltip]::before {
  opacity: 1;
  transform: translateX(0);
}

/* =========================================
   6. NAVIGATION & HEADER
   ========================================= */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.logo-img {
    height: 60px; /* Slightly larger logo */
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links li a {
    font-weight: 500;
    color: var(--stitch-navy);
    position: relative;
    padding: 5px 0;
}

/* Animated Underline */
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--stitch-cyan);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}
/* =========================================
   7. NEWSLETTER PREMIUM (High Contrast)
   ========================================= */
.footer-newsletter {
    background: linear-gradient(135deg, var(--stitch-navy) 0%, var(--stitch-blue) 100%);
    padding: 4rem 2rem;
    margin-top: 4rem;
    border-radius: 24px 24px 0 0; /* Rounded top corners */
    position: relative;
    overflow: hidden;
    color: white;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

/* Background Pattern Overlay */
.footer-newsletter::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
                      radial-gradient(circle at 80% 50%, rgba(0,180,216,0.1) 0%, transparent 50%);
    z-index: 0;
}

.newsletter-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.newsletter-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
    letter-spacing: 0.5px;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
}

.newsletter-form .input-group {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px;
    border-radius: 50px;
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-form .input-group:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form input {
    background: transparent;
    border: none;
    color: white;
    padding: 0 1.5rem;
    font-size: 1rem;
    flex-grow: 1;
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.btn-newsletter {
    background: white;
    color: var(--stitch-navy);
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn-newsletter:hover {
    background: var(--stitch-cyan);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
    transform: scale(1.05);
}

/* Responsive Newsletter */
@media (max-width: 768px) {
    .newsletter-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-newsletter {
        padding: 3rem 1.5rem;
        margin-top: 2rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
        border: none;
        gap: 1rem;
    }
    
    .newsletter-form input {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 50px;
        padding: 15px 20px;
        width: 100%;
        text-align: center;
    }
    
    .btn-newsletter {
        width: 100%;
        padding: 15px;
    }
}

/* =========================================
   8. SPACING & LAYOUT BALANCING
   ========================================= */
/* Clean Grid Layouts */
.sintomas-grid, .divisions-grid, .values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem; /* Balanced gap */
    margin-top: 3rem;
}

/* Section Spacing adjustments */
.sintomas-section, .facilities-section, .values-section, .rejuvalife-hero-section, .regenelife-hero-section, .beneficios-section {
    padding: 6rem 0; /* Professional breathing room */
    background: white;
}

/* Alternate Backgrounds for Rhythm */
.quienes-somos-section, .divisions-section, .testimonials-section {
    background: var(--stitch-bg-light); /* Off-white clinical bg */
    padding: 6rem 0;
}

/* Container refinement */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =========================================
   9. FIXES & UTILITIES
   ========================================= */
/* Ensure text is visible on white cards */
.sintoma-card h3,
.division-card h2,
.value-card h3,
.beneficio-card h3,
.advantage-card h3,
.detailed-card h3,
.faq-item h3,
.contact-card h3,
.case-card h3,
.process-step h3,
.condition-category h3,
.check-item h3,
.check-item p strong {
    color: var(--stitch-navy);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.sintoma-card p,
.division-card p,
.value-card p,
.beneficio-card p,
.advantage-card p,
.detailed-card p,
.faq-item p,
.contact-card p,
.case-card p,
.process-step p,
.check-item p {
    color: var(--stitch-text-dark);
    line-height: 1.6;
}

.detailed-card ul, .condition-list, .check-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.detailed-card ul li, .condition-list li {
    color: var(--stitch-text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.check-item span {
    color: var(--stitch-cyan);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Fix for all Section Titles */
section h2  {
    color: var(--stitch-navy) !important;
    text-align: center;
    margin-bottom: 1rem;
}

section > .container > p, .section-intro {
    color: var(--stitch-text-dark) !important;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.15rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   11. PREMIUM NAVIGATION (Dropdowns)
   ========================================= */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(0, 119, 182, 0.1);
    box-shadow: 0 10px 40px rgba(0, 52, 102, 0.15);
    padding: 1rem;
    min-width: 220px;
    top: 100%; /* Ensure it aligns correctly */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block; /* Override default display:none to allow transition */
}

/* Show on hover */
.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin-bottom: 5px;
}

.dropdown-menu li:last-child {
    margin-bottom: 0;
}

.dropdown-menu a {
    color: var(--stitch-text-dark);
    font-weight: 500;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    display: block;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background: rgba(0, 180, 216, 0.08);
    color: var(--stitch-navy);
    transform: translateX(5px);
}

.dropdown-menu a::before {
    content: '›';
    margin-right: 8px;
    color: var(--stitch-cyan);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: inline-block;
    transform: translateX(-5px);
}

.dropdown-menu a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Dropdown Icon Animation */
.dropdown-icon {
    display: inline-block;
    font-size: 0.8em;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.nav-item-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}
/* =========================================
   10. PREMIUM CONTACT PAGE
   ========================================= */
.contact-page-content {
    background: #FFFFFF;
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

/* Contact Info Side */
.info-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: var(--stitch-bg-light);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 119, 182, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
    border-color: var(--stitch-cyan-glow);
}

.info-icon {
    font-size: 2rem;
    background: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.info-item h3 {
    margin-bottom: 0.5rem;
    color: var(--stitch-navy);
    font-size: 1.2rem;
}

.info-item p, .info-item a {
    color: var(--stitch-text-dark);
    line-height: 1.5;
    text-decoration: none;
}

/* Contact Form Side */
.contact-form-container {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--stitch-navy);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 2px solid #E0E0E0;
    background: #F9F9F9;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--stitch-text-dark);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--stitch-cyan);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.1);
    outline: none;
}

.btn-primary-large {
    width: 100%;
    background: linear-gradient(135deg, var(--stitch-blue) 0%, var(--stitch-cyan) 100%);
    color: white;
    padding: 1.2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 119, 182, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 119, 182, 0.3);
}

.form-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #888;
    text-align: center;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
