/*
Theme Name: Arure
Description: Tema WordPress para Arure - Asistente virtual de llamadas y mensajes por IA para negocios en Canarias
Version: 1.1
Author: Arure Team
Text Domain: arure
*/

/* --- CSS Variables --- */
:root {
    /* --- STRUCTURAL VARIABLES (Shared by both themes) --- */
    /* These were missing from your light mode! */
    --font-primary: 'Lato', sans-serif;
    --font-headings: 'Poppins', sans-serif;
    --border-radius: 12px;
    --transition-fast: 0.2s ease-out;
    --transition-medium: 0.4s ease-out;

    --color-background-primary: #E8ECF0;
    --color-background-secondary: #FFFFFF;     
    --color-background-tertiary: #DEE3E8;      

    --color-text-primary: #1F2937;             
    --color-text-secondary: #4B5563;           
    --color-text-headings: #111827;            

    --color-accent-teal: #00BFA5; /* Darkened slightly */
    --color-accent-blue: #0969DA; /* Github Blue */
    --color-accent-green: #2EA043; /* Github Green */

    --color-border: #D1D5DB;
	
	--star-color: #161B22;
	
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06); 
    --shadow-glow: 0 0 15px rgba(var(--glow-rgb), 0.15); }

/* --- Dark Theme Overrides --- */
[data-theme="dark"] {
    /* --- DARK THEME COLOR OVERRIDES --- */
    --color-background-primary: #0D1117; 
    --color-background-secondary: #161B22; 
    --color-background-tertiary: #21262D;
    
    --color-text-primary: #F0F6FC;
    --color-text-secondary: #B1BCC5; 
    --color-text-headings: #FFFFFF;

    --color-accent-teal: #48D2B9; 
    --color-accent-blue: #6CB6FF; 
    --color-accent-green: #37D484; 

    --color-border: #30363D;
    
	--star-color: #EEF1F4;
	
    /* Shadows are stronger/different in dark mode */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 15px rgba(var(--glow-rgb), 0.4);

}

/* --- Reset and Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-background-primary);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h5, h6 {
    font-family: var(--font-headings);
    color: var(--color-text-headings);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); 
margin-bottom: 0;
color: var(--color-text-headings);  

}
h3 { 
font-size: clamp(1rem, 100%, 100%); 
margin-bottom: 0;



  
	
}
h4 {  
 font-size: clamp(1rem, 100%, 1rem);
   color: var(--color-text-secondary);
  line-height: 1.3;
    font-weight: 400 !important; <= works */
    font-weight: normal !important; <= works now, as does the rule below */

}

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
}

.hero-subtitle {
    font-size: 1.25rem; /* Overrides the large h2 font-size */
    font-weight: 400; /* Makes the font regular, not bold */
    color: var(--color-text-secondary); /* The lighter grey text color */
    line-height: 1.6;
    max-width: 650px;
    margin: 1.5rem auto 2.5rem; /* Adjusts spacing */
}
.hero-subtitle2 {
font-size: clamp(2rem, 4vw, 3rem); 
margin-bottom: 0;
color: var(--color-text-headings);
}

a {
    color: var(--color-accent-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-teal);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.sr-only, .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Header --- */
.site-header {
    background: var(--color-background-primary) !important; /* Force this background and override JS styles */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); /* For Safari */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    transition: none !important; /* Disable any background transitions */
}
.site-header.scrolled {
    background: var(--color-background-primary) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important; /* For Safari */
}
.site-main {
    padding-top: 82px; /* Adjust this value if you change the header's height */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-headings);
}

.logo .custom-logo {
    height: 40px;
    width: auto;
}
.logo .site-title {
    font-size: 1.5rem;
}


.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.main-nav a {
    color: var(--color-text-secondary);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-teal);
    transition: width var(--transition-fast);
}

.main-nav a:hover, .main-nav .current-menu-item a {
    color: var(--color-text-primary);
}

.main-nav a:hover::after, .main-nav .current-menu-item a::after {
    width: 100%;
}




/* --- Hero Section --- */
.hero {
    padding: 30px 0 40px; /* Reduced top padding from 140px to 60px */
    text-align: center;
}

.hero-content {
    display: grid;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-text h1 {
    line-height: 1.2;
}

.hero-text .highlight {
    color: var(--color-accent-teal);
}

.hero-text p {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 1.5rem auto 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--color-accent-blue);
    color: var(--color-background-primary);
    --glow-rgb: 88, 166, 255;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-accent-teal);
    border-color: var(--color-accent-teal);
    --glow-rgb: 51, 211, 184;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

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

.btn-secondary:hover {
    background-color: var(--color-accent-teal);
    color: var(--color-background-primary);
}

/* --- Animated Underline Highlight --- */
.animated-underline {
    display: inline-block; /* Ensures the element only takes up the width of the text */
    position: relative;   /* Required for positioning the pseudo-element */
}

.animated-underline::after {
    content: '';
    position: absolute;
    width: 0; /* Starts with no width */
    height: 3px; /* The thickness of the underline */
    bottom: -6px; /* Adjust to position the line below the text */
    left: 0;
    background-color: var(--color-accent-teal);
    transition: width var(--transition-medium); /* Animate the width change */
}

.animated-underline:hover::after {
    width: 100%; /* Expands to full width on hover */
}


/* --- Service Icons --- */
.service-icons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem; /* Space between icons */
    margin-top: 2rem; /* Space above the icons */
    flex-wrap: wrap; /* Allows icons to wrap on smaller screens */
}

.service-icon {
    color: var(--color-text-secondary); /* A more subtle color */
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.service-icon:hover {
    color: var(--color-accent-blue); /* Highlight color on hover */
    transform: translateY(-3px); /* Slight lift effect on hover */
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .service-icons-container {
        gap: 1rem;
    }
    .service-icon svg {
        width: 28px;
        height: 28px;
    }
}


/* --- Pulsing Glow Text --- */
.pulsing-glow {
    animation: pulse-glow 2.5s infinite ease-in-out;
}

@keyframes pulse-glow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(88, 166, 255, 0.3); /* --color-accent-blue */
    }
    50% {
        text-shadow: 0 0 15px rgba(88, 166, 255, 0.7);
    }
}

/* --- Animated Gradient Text --- */
.animated-gradient {
    background: linear-gradient(90deg, var(--color-accent-teal), var(--color-accent-blue), var(--color-accent-green), var(--color-accent-teal));
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-flow 4s linear infinite;
}


@keyframes gradient-flow {
    to {
        background-position: 200% center;
    }
}


/* --- Subtle Highlight Text --- */
.subtle-highlight {
    background: linear-gradient(to top, rgba(51, 211, 184, 0.2) 40%, transparent 40%); /* --color-accent-teal with alpha */
    padding: 0 0.2em;
    margin: 0 -0.2em;
    border-radius: 4px;
}



/* --- Custom Video Player --- */
.custom-video-player {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.custom-video-player::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.custom-video-player .video-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Show video (and poster) immediately */
}

.custom-video-player .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #B1BCC5;
    border: 2px solid var(--color-text-primary);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    backdrop-filter: blur(5px);
}

.custom-video-player .play-button svg {
    width: 40px;
    height: 40px;
    transform: translateX(3px);
}

.custom-video-player:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(88, 166, 255, 0.8);
    border-color: var(--color-accent-blue);
    color: var(--color-text-headings);
}

.custom-video-player.playing .play-button {
    opacity: 0;
    pointer-events: none;
}
/* --- Sections --- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
/* Aligns the info bubble inside the H2 tag */
.section-header h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.features {
    background-color: var(--color-background-secondary); /* This is the lighter grey */
    position: relative;
    padding: 100px 0 80px 0; /* Adds space for the fade at the top */
}
.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(
        to bottom,
        var(--color-background-primary), /* Fades from the darker hero background */
        transparent
    );
    z-index: 1;
}


/* --- Feature Cards --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
	align-items: stretch; /* Default alignment: all cards are the same (tallest) height */
}

/* NEW: Specific rule for the shorter cards */
.feature-card-short {
    align-self: start; /* This card aligns itself to the bottom of the row */
}

.feature-card {
    display: flex; /* Add this */
    flex-direction: column; /* Add this */
    background: var(--color-background-tertiary);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-soft);
}
.feature-card > p {
    flex-grow: 1; /* This makes the paragraph expand */
}

.feature-card-align { 
    justify-content: center; /* This centers the content vertically */
    text-align: center; 
 }

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-headings);
}

/* --- Services Page / Pricing Cards --- */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    gap: 1rem;
}
    
.toggle-text {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.toggle-text.active {
    color: var(--color-accent-teal);
}
/* Make the "Mensual / Anual" controls look like text but be keyboard focusable */
.toggle-text {
  background: transparent;
  border: none;
  padding: 0;
  line-height: 1;
  cursor: pointer;
}

/* Visible focus ring for keyboard users on the billing period buttons */
.toggle-text:focus-visible {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 4px;
  border-radius: 6px;
}

/* Optional: hover affordance similar to your other UI */
.toggle-text:hover {
  color: var(--color-accent-teal);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-background-tertiary);
    border: 1px solid var(--color-border);
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: var(--color-accent-blue);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--color-background-tertiary);
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
    background-color: var(--color-accent-teal);
}

.pricing-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: stretch;
}

.pricing-card {
    background-color: var(--color-background-secondary);
    border-radius: var(--border-radius);
    padding: 2rem;
    position: relative;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    flex: 1 1 320px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.pricing-card.card-pro {
    border-color: var(--color-accent-blue);
    --glow-rgb: 88, 166, 255;
    box-shadow: var(--shadow-glow);
}

.popular-tag {
    position: absolute;
    top: -1px;
    right: 20px;
    background: var(--color-accent-blue);
    color: var(--color-background-primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 0 0 8px 8px;
}

.card-tier {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--font-headings);
}
.card-starter .card-tier { color: var(--color-accent-green); }
.card-pro .card-tier { color: var(--color-accent-blue); }
.card-enterprise .card-tier { color: var(--color-accent-teal); }

.card-description {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    min-height: 4.5em;
}

.card-price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-family: var(--font-headings);
}

.price-cycle {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    height: 1.2em;
}

.card-features {
    list-style-type: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.card-features li::before {
    content: "✓";
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.card-starter .card-features li::before { color: var(--color-accent-green); }
.card-pro .card-features li::before { color: var(--color-accent-blue); }
.card-enterprise .card-features li::before { color: var(--color-accent-teal); }


.card-button {
    background-color: transparent;
    color: var(--color-text-primary);
    border: 2px solid;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: auto;
}

.card-starter .card-button { border-color: var(--color-accent-green); }
.card-starter .card-button:hover { background-color: var(--color-accent-green); color: var(--color-background-primary); }

.card-pro .card-button { border-color: var(--color-accent-blue); background-color: var(--color-accent-blue); color: var(--color-background-primary); }
.card-pro .card-button:hover { background-color: transparent; color: var(--color-accent-blue); }

.card-enterprise .card-button { border-color: var(--color-accent-teal); }
.card-enterprise .card-button:hover { background-color: var(--color-accent-teal); color: var(--color-background-primary); }

/* --- Dropdown in Pricing Cards --- */
.dropdown { position: relative; width: 100%; font-family: var(--font-primary); margin-bottom: 1rem; }
.dropdown-toggle {
  display:flex;
  justify-content:space-between;
  align-items:center;
  width:100%;
  padding:12px 14px;
  background: var(--color-background-tertiary);
  border-radius:8px;
  border:1px solid var(--color-border);
  cursor:pointer;
  transition: border-color var(--transition-fast);
}
.dropdown-toggle:hover { border-color: var(--color-accent-blue); }
.selectedOption { font-weight:600; color: var(--color-text-primary); }
.dropdown_arrow {
  width:10px; height:10px;
  border-right:2px solid var(--color-text-secondary); border-bottom:2px solid var(--color-text-secondary);
  transform: rotate(45deg);
  margin-left:10px;
  transition: transform .22s ease;
}
.dropdown.open .dropdown_arrow { transform: rotate(-135deg); }
.dropdown_items {
  display: none;
  margin: 0.5rem 0 0;
  padding-top: 0.75rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  list-style: none;
  background: var(--color-background-tertiary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  position: absolute;
  width: 100%;
  z-index: 10;
  height: fit-content;
  overflow-y: auto;
}
.dropdown.open .dropdown_items { display: block; }
.dropdown_items li {
  padding:10px 12px;
  border-radius:6px;
  cursor:pointer;
  user-select: none;
  color: var(--color-text-secondary);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.dropdown_items li:hover { background: var(--color-background-secondary); color: var(--color-text-primary); }
.dropdown_items li.selected { background: var(--color-accent-blue); color: var(--color-background-primary); font-weight:700; border-radius: 6px !important; }

/* Clear, rectangular focus ring on dropdown options */
.dropdown .dropdown_items li:focus,
.dropdown [role="option"]:focus {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 2px;
  border-radius: 6px;
}

/* --- FAQ Section (for <details> element) --- */
.faq-section {
    padding: 80px 0;
    background-color: transparent; /* Make background see-through */
}
.faq-container {
    max-width: 1000px;
    margin: 0 auto;
}
.faq-item {
    background: var(--color-background-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}
.faq-item:hover {
    border-color: var(--color-accent-blue);
}


/* Keyboard visibility: mirror hover for keyboard users */
.faq-item:focus-within {
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 3px rgba(108, 182, 255, 0.25); /* subtle halo */
}

/* Strong focus style on the summary (FAQ question) when tabbed */
.faq-question:focus-visible {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 6px;            /* moves ring away from text */
  background: rgba(108, 182, 255, 0.10);
  border-radius: 8px;             /* matches your card radius feel */
}

/* Fallback for browsers without :focus-visible (keeps mouse-click clean) */
.faq-question:focus {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 0;
  background: rgba(108, 182, 255, 0.10);
  border-radius: 8px;
}
.faq-question:focus:not(:focus-visible) {
  outline: none;
  background: transparent;
}

/* Keep the “+” indicator color consistent on focus */
.faq-question:focus-visible::after,
.faq-question:focus::after {
  color: var(--color-accent-blue);
}


.faq-question {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-headings);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none; /* Removes the default triangle */
}
.faq-question::-webkit-details-marker {
    display: none; /* Hides default triangle in Chrome/Safari */
}
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-accent-blue);
    transition: transform var(--transition-fast);
}
.faq-item details[open] > .faq-question::after {
    transform: rotate(45deg);
}

/* (v8) FAQ answer: use explicit height animation (JS drives inline height) */
.faq-answer {
    padding: 0 1.5rem 1.5rem; /* top/bottom, left/right, bottom */
}

/* When JS sets it to an open state (during animation height is inline; after expand we set to auto) */
.faq-answer.is-expanding,
.faq-answer.is-collapsing {
    overflow: hidden; /* ensure smooth clipping during animation */
}

/* Optional: prevent scroll anchoring jump (Chrome) */
.faq-item {
    overflow-anchor: none;
}

.faq-answer p {
    margin: 0;
    color: var(--color-text-secondary);
}

/* Keep the visibility styling when <details> is open so opacity can settle (height handled by JS) */
.faq-item details[open] .faq-answer {
    opacity: 1;
    margin-bottom: 0.5rem;
}
/* (Optional accessibility / motion preference) */
@media (prefers-reduced-motion: reduce) {
  .faq-answer {
    transition: none !important;
    height: auto !important;
    opacity: 1 !important;
  }
}
/* (v18) Grid container for jump-free animation */
.faq-answer-grid {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden; /* This should be on the grid container */
    opacity: 0;
    transition: grid-template-rows 0.35s ease, opacity 0.2s ease;
}
details[open] > .faq-answer-grid {
    grid-template-rows: 1fr;
	opacity: 1;
}


/* --- Contact Form --- */
.contact-form-section {
    background-color: var(--color-background-secondary);
    padding: 80px 0;
}
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-background-tertiary);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}
.form-grid .form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: var(--color-background-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--color-text-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent-blue);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.form-submit {
    text-align: center;
    margin-top: 2rem;
}
.form-note {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    margin-top: 1rem;
}
.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin: 0 0 1.5rem;
    text-align: center;
    font-weight: 600;
}
.form-message.success { background: rgba(38, 203, 124, 0.1); color: var(--color-accent-green); border: 1px solid var(--color-accent-green); }
.form-message.error { background: rgba(255, 121, 198, 0.1); color: #ff79c6; border: 1px solid #ff79c6; }

/* --- Helper Classes --- */
.video-caption {
    margin-top: 1rem;  /* Reduces the default top margin */
    font-size: 0.9rem; /* Optional: Makes the text a bit smaller */
}


/* --- Footer --- */
.site-footer {
    background: var(--color-background-secondary);
    color: var(--color-text-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand-section .footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-headings);
}

.footer-brand-section .footer-brand .custom-logo {
    height: 40px; width: auto;
}

.footer-description {
    max-width: 400px;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--color-text-secondary);
    font-size: 1rem;
    font-weight: 600;
}
.social-links a:hover {
    color: var(--color-accent-teal);
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-headings);
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-section ul li a {
    color: var(--color-text-secondary);
}
.footer-section ul li a:hover {
    color: var(--color-text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    text-align: left;
    font-size: 0.875rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-background-secondary);
        border-bottom: 1px solid var(--color-border);
        padding: 1rem;
    }
    .main-nav.active {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .mobile-menu-toggle {
        display: block;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand-section, .social-links {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
}






/* --- Page: Soluciones --- */

/* Hero Section Styling */
.soluciones-hero {
    background: var(--color-background-secondary);
    padding: 80px 0;
    text-align: center;
}

.soluciones-hero h1 {
    font-size: 2.8rem;
    color: var(--color-text-headings);
    margin-bottom: 0.5rem;
}

.soluciones-hero .hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}



/* Why Choose Us / Reasons Grid Section */
.why-choose-section {
    padding: 80px 0;
    background: var(--color-background-secondary);
}

.why-choose-section .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.reasons-grid {
    display: grid;
    /* This creates a responsive grid. It will show 3 columns on desktop, 2 on tablet, and 1 on mobile */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.reason-card {
    background: var(--color-background-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.reason-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}



.reason-card h3 {
    font-size: 1.3rem;
    color: var(--color-text-headings);
    margin-bottom: 0.75rem;
}

.reason-card p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Technology Section */
.technology-section {
    padding: 100px 0;
    overflow: hidden;
}

.technology-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.technology-text {
    flex: 1; /* Takes up 50% of the space */
}

.technology-visual {
    flex: 1; /* Takes up the other 50% */
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.tech-feature .tech-icon {
    font-size: 1.5rem;
    background-color: var(--color-background-secondary);
    padding: 0.5rem;
    border-radius: 50%;
    line-height: 1;
}


/* CTA Section */
.cta-section {
    background-color: var(--color-background-secondary);
    padding: 80px 0;
    text-align: center;
}
.cta-content h2 {
    font-size: 2.5rem;
}
.cta-content p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive adjustments for Soluciones Page */
@media (max-width: 992px) {
    .technology-content {
        flex-direction: column;
        text-align: center;
    }
    .tech-features {
        align-items: center;
    }
    .tech-feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .technology-visual {
        margin-top: 3rem;
    }
}



/* --- Page: Soluciones (v2 - Professional Redesign) --- */

/* General Page Styles */
.soluciones-page .section-header {
    margin-bottom: 3rem;
}
.soluciones-page .section-header h2 {
    font-size: 2.5rem;
}

/* 1. Hero Section */
.soluciones-hero {
    padding: 120px 0 60px; /* Reduced bottom padding */
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: transparent; /* Make background see-through */
}
.soluciones-hero .hero-content {
    position: relative;
    z-index: 2;
}
.soluciones-hero .hero-subtitle {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 1rem auto 0;
}

/* 2. Animated Statistics Section */
.stats-section {
    background-color: var(--color-background-primary);
    padding: 40px 0 60px 0;
    border-top: none;
    border-bottom: none; 
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}
.stat-item {
    padding: 1rem;
}
.stat-number, .stat-suffix {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-accent-teal);
    line-height: 1;
}
.stat-suffix {
    margin-left: 0.25rem;
}
.stat-label {
    font-size: 1rem;
    color: var(--color-accent-teal);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* 3. Why Choose Us Section (with Tooltips) */
/* Why Choose Us / Reasons Grid Section */
.why-choose-section {
    padding: 200px 0 80px 0; /* Increased top padding */
    background: var(--color-background-secondary);
    position: relative; /* Added for the fade effect */
}
.why-choose-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(
        to bottom,
        var(--color-background-primary), /* Starts with the darker color from above */
        transparent
    );
    z-index: 1;
}
.reason-card h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}






.info-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-border);
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    font-style: italic;
    font-weight: 700;
    cursor: help;
    position: relative;
	transform: translateX(+3px);
	padding-right: 4px;
}
.info-tooltip2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-border);
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    font-style: italic;
    font-weight: 700;
    cursor: help;
    position: relative;
	transform: translateX(-70px);
	padding-right: 4px;
	
}
.info-tooltip3 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-border);
    color: var(--color-text-secondary);
    font-size: 0.8rem;
	font-style: italic;
    font-weight: 700;
    cursor: help;
    position: relative;
    /* transform and padding-right lines removed */
}
.info-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-background-tertiary);
    color: var(--color-text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-style: normal;
    font-family: var(--font-primary); /* Add this line */
    text-align: center;
    width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
    box-shadow: var(--shadow-soft);
    z-index: 100;
}
.info-tooltip:hover::after,
.info-tooltip:focus::after {
    opacity: 1;
    visibility: visible;
}
.info-tooltip2::after {
    content: attr(data-tooltip2);
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-background-tertiary);
    color: var(--color-text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-style: normal;
    font-family: var(--font-primary); /* Add this line */
    text-align: center;
    width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
    box-shadow: var(--shadow-soft);
    z-index: 100;
}
.info-tooltip2:hover::after,
.info-tooltip2:focus::after {
    opacity: 1;
    visibility: visible;
}
.info-tooltip3::after {
    content: attr(data-tooltip3);
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-background-tertiary);
    color: var(--color-text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-style: normal;
    font-family: var(--font-primary); /* Add this line */
    text-align: center;
    width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
    box-shadow: var(--shadow-soft);
    z-index: 100;
}
.info-tooltip3:hover::after,
.info-tooltip3:focus::after {
    opacity: 1;
    visibility: visible;
}
/* Focus ring JUST for the tooltip icons (rounded) */
.info-tooltip:focus,
.info-tooltip2:focus,
.info-tooltip3:focus {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 2px;
  border-radius: 50%;
}

/* Generic tabindex focus (e.g., main gets tabindex="-1"): keep it rectangular */
[tabindex]:focus:not(.modal-overlay) { /* MODIFIED: Exclude the modal overlay */
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 2px;
  border-radius: 50%;
}


@media screen and (max-width: 768px) {
    /* Apply to all tooltip types */
    .info-tooltip::after,
    .info-tooltip2::after,
    .info-tooltip3::after {
        /* 1. Stop centering the bubble (which pushes it off-screen) */
        left: auto !important;
        transform: none !important;

        /* 2. Anchor the bubble to the RIGHT side of the icon */
        /* This makes the box expand towards the LEFT, staying safe inside the screen */
        right: -10px !important; 
        
        /* 3. Reduce width slightly to fit better on narrow screens */
        width: 190px !important;
        
        /* 4. Ensure text wraps properly */
        white-space: normal !important;
        text-align: left !important; /* Optional: aligns text to match the anchor */
		padding: 0.8rem !important;
    }
}








/* 6. CTA Section */
.cta-section {
    padding: 80px 0;
    text-align: center;
}
.cta-gradient-btn {
    background: var(--color-accent-blue);
    color: var(--color-background-primary);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    background-size: 200% auto;
    transition: background-position 0.5s;
}
.cta-gradient-btn:hover {
    color: var(--color-background-primary);
    background-image: linear-gradient(to right, var(--color-accent-blue) 0%, var(--color-accent-teal) 50%, var(--color-accent-blue) 100%);
    background-position: right center; /* change the direction of the change here */
    box-shadow: var(--shadow-glow);
}

/* === FINAL ANIMATION SYSTEM v4 (Corrected Selectors) === */

/* The base state for all elements that will animate.
   They start invisible and are ready to transition. */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* --- Animation Starting Positions --- */
/* This is where the element is BEFORE the animation starts.
   We use attribute selectors to match the data-animation="" in the HTML. */

/* Default: Starts 20px down */
.animate-on-scroll[data-animation="fade-in"] {
  transform: translateY(20px);
}

/* Variant: Starts 40px down */
.animate-on-scroll[data-animation="fade-in-up"] {
  transform: translateY(40px);
}

/* CORRECTED: Variant for stats. Starts 40px UP and slightly smaller. */
.animate-on-scroll[data-animation="fade-in-down-scale"] {
  transform: translateY(-40px) scale(0.92);
  transform-origin: top center;
}

/* --- Final Animation State --- */
/* When JavaScript adds the .is-visible class, the element moves to this state. */
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: none; /* Resets transform to its default (translateY(0) scale(1)) */
}


/* --- Delays (No changes needed here) --- */
.animate-on-scroll[data-delay="100"].is-visible { transition-delay: 0.1s; }
.animate-on-scroll[data-delay="200"].is-visible { transition-delay: 0.2s; }
.animate-on-scroll[data-delay="400"].is-visible { transition-delay: 0.4s; }

/* Fallback for when JavaScript is disabled */
noscript .animate-on-scroll {
  opacity: 1;
  transform: none;
}




/* --- WhatsApp Interactive Simulation (v8.1 - Final & Cleaned) --- */

/* Layout Fix: Add padding to the bottom of the entire section */
.whatsapp-simulation-section {
    padding-bottom: 80px;
}


/* Section Layout */
.simulation-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: flex-start;
}

/* Phone Mockup Container */
.whatsapp-phone-mockup-container {
    flex-shrink: 0;
    width: 380px;
    max-width: 100%; /* Ensure it's responsive on very small screens */
}

/* ADD THIS: Animation for secondary steps */
#whatsapp-steps-wrapper {
    display: grid;
    grid-template-rows: 0fr; /* Start collapsed */
    transition: grid-template-rows 0.4s ease-in-out;
}

#whatsapp-steps-wrapper.open {
    grid-template-rows: 1fr; /* Expand to content height */
}

#whatsapp-steps-wrapper > div {
    overflow: hidden;
}

.control-step {
    opacity: 1; /* Ensure steps are visible when wrapper is open */
    transition: opacity 0.3s ease-in-out;
}

/* The main container for the entire control panel on the left */
.simulation-controls {
    flex: 1; /* Allow it to grow */
    min-width: 300px; /* Prevent it from getting too squished */
    background: var(--color-background-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

/* Header for the "Elige un Escenario" title */
.controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.simulation-controls h3 {
    margin-bottom: 0;
}

/* Recibiendo/Enviando Toggle */
.mode-segmented-control {
    display: flex;
    background-color: var(--color-background-primary);
    border-radius: var(--border-radius);
    padding: 0.25rem;
    border: 1px solid var(--color-border);
}
.mode-btn {
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 9px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.mode-btn.active {
    background-color: var(--color-background-tertiary);
    color: var(--color-text-primary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Level 1: Category Buttons (Tabs) */
.category-buttons {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.category-btn {
    background: transparent;
    border: none;
    border-radius: 8px 8px 0 0;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    position: relative;
    cursor: pointer;
}
.category-btn::after {
    content: '';
    position: absolute;
    bottom: 0; /* This moves the underline up to the button's edge */
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-accent-blue);
    transform: scaleX(0);
    transition: transform var(--transition-medium);
}
.category-btn.active {
    color: var(--color-text-primary);
}
.category-btn.active::after {
    transform: scaleX(1);
}

/* Level 2: Business Type Buttons */
.business-type-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0;
}
.business-type-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.business-type-btn:hover {
    border-color: var(--color-accent-blue);
    color: var(--color-text-primary);
}
.business-type-btn.active {
    background-color: var(--color-background-tertiary);
    border-color: var(--color-accent-blue);
    color: var(--color-text-primary);
}

/* Level 3: Use Case Buttons (Pills) — stable, no jump */
.use-case-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  align-items: flex-start; /* avoid wrap jumping */
}
.use-case-btn {
  background: var(--color-background-tertiary);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;           /* unified weight */
  white-space: nowrap;        /* keep label on one line */
  min-height: 34px;           /* stable height */
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);     /* no geometry transition */
}
.use-case-btn:hover {
  border-color: var(--color-accent-teal);
  color: var(--color-text-primary);
}
.use-case-btn.active {
  background-color: var(--color-accent-teal);
  border-color: var(--color-accent-teal);
  color: var(--color-background-primary);
  font-weight: 600;           /* no width change on activate */
  box-shadow: 0 0 0 2px rgba(0,0,0,0) inset; /* placeholder to prevent border size shifts */
}

/* Description and CTA Area */
.description-and-cta-area {
    margin-top: auto; /* Pushes this block to the bottom */
    padding-top: 2rem;
    text-align: center;
}
.description-and-cta-area p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.btn-contact-sim {
    background: var(--color-accent-blue);
    color: var(--color-background-primary);
    border-radius: 8px;
    width: 100%;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
.btn-contact-sim:hover {
    background: var(--color-accent-teal);
    color: var(--color-background-primary);
    transform: translateY(-2px);
}



/* --- WhatsApp Phone & Chat UI (stable) --- */
.whatsapp-phone-mockup {
  width: 390px;
  max-width: 100%;
  margin: 0 auto;
}
.phone-frame {
  background: var(--color-background-secondary);
  border: 1px solid var(--color-border);
  border-radius: 26px;
  padding: 12px;
  box-shadow: var(--shadow-soft);
}
.phone-screen {
  background: var(--color-background-primary);
  border-radius: 20px;
  overflow: hidden;
  height: 640px;
  display: flex;
  flex-direction: column;
}

/* Header */
.whatsapp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-background-secondary);
}
.whatsapp-header .profile-pic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-border);
}
.whatsapp-header .contact-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.whatsapp-header .contact-name {
  color: var(--color-text-primary);
  font-weight: 700;
}
.whatsapp-header .contact-status {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
}

/* Chat area */
.whatsapp-chat-area {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Message containers and animation */
.message-container {
  display: flex;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease-out, transform 180ms ease-out;
}
.message-container.visible {
  opacity: 1;
  transform: translateY(0);
}
.message-container.client { justify-content: flex-start; }
.message-container.assistant { justify-content: flex-end; }

/* Bubbles */
.message-bubble {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 14px;
  position: relative;
  font-size: 0.95rem;
}
.message-container.client .message-bubble {
  background: var(--color-background-tertiary);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  border-top-left-radius: 4px;
}
.message-container.assistant .message-bubble {
  background: var(--color-accent-blue);
  color: var(--color-background-primary);
  border-top-right-radius: 4px;
}

/* Timestamp inside bubble */
.message-bubble .timestamp {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  opacity: 0.8;
  text-align: right;
  color: inherit;
}

/* Typing indicator */
.typing-indicator .message-bubble {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
}
.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
  animation: typing-bounce 1s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
}

/* Footer */
.whatsapp-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-background-secondary);
  padding: 10px 12px;
}
.input-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-background-primary);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 10px 12px;
  color: var(--color-text-secondary);
  gap: 10px;
}
.input-field > span {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}
.input-icons {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.input-icon {
  width: 18px;
  height: 18px;
  opacity: 0.75;
}
.input-icon:hover {
  opacity: 1;
}

@media (max-width: 900px) {
  .whatsapp-phone-mockup-container { width: 100%; }
  .whatsapp-phone-mockup { margin-top: 1rem; }
}

@media (max-width: 480px) {
  .whatsapp-phone-mockup {
    width: 100%;
    max-width: 320px;
  }
  
  .simulation-controls {
    padding: 1rem;
  }
}



/* === WhatsApp skin (Android) — scoped to the phone only === */
.whatsapp-phone-mockup {
  /* WhatsApp palette */
  --wa-header: #075E54;
  --wa-bg: #ECE5DD;
  --wa-incoming: #FFFFFF;
  --wa-outgoing: #DCF8C6;
  --wa-secondary: #667781;     /* timestamps, meta */
  --wa-icon: #667781;          /* input icons */
  --wa-blue-tick: #53BDEB;     /* delivered/seen ticks */
  --wa-shadow: rgba(0,0,0,0.06);
  --wa-font: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

/* Use Roboto only inside the phone */
.whatsapp-phone-mockup .phone-screen,
.whatsapp-phone-mockup .whatsapp-chat-area,
.whatsapp-phone-mockup .message-bubble {
  font-family: var(--wa-font);
}

/* Header: green app bar, white text */
.whatsapp-phone-mockup .whatsapp-header {
  background: var(--wa-header);
  border-bottom: none;
  color: #fff;
}
.whatsapp-phone-mockup .whatsapp-header .contact-name { color: #fff; font-weight: 700; }
.whatsapp-phone-mockup .whatsapp-header .contact-status { color: #cfe9e4; }

/* Chat background: WhatsApp beige + subtle dot pattern */
.whatsapp-phone-mockup .whatsapp-chat-area {
  background-color: var(--wa-bg);
  background-image:
    radial-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,0.04) 1px, transparent 1px);
  background-position: 0 0, 20px 20px;
  background-size: 40px 40px;
  padding: 12px 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.25) transparent;
  overflow-x: hidden; /* ADD THIS LINE TO PREVENT HORIZONTAL SCROLL */
}

/* Message list spacing + appear animation */
.whatsapp-phone-mockup .message-container {
  margin: 2px 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 160ms ease-out, transform 160ms ease-out;
}
.whatsapp-phone-mockup .message-container.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Bubble base */
.whatsapp-phone-mockup .message-bubble {
  position: relative;
  max-width: 82%;
  padding: 8px 10px 6px 10px;
  line-height: 1.35;
  font-size: 15px;
  border-radius: 16px;
  box-shadow: 0 1px 0 var(--wa-shadow);
}

/* Incoming (left, white) */
.whatsapp-phone-mockup .message-container.client { justify-content: flex-start; }
.whatsapp-phone-mockup .message-container.client .message-bubble {
  background: var(--wa-incoming);
  color: #111B21;
  border-radius: 0px 8px 8px 4px; /* TL TR BR BL */
}


/* Outgoing (right, green) */
.whatsapp-phone-mockup .message-container.assistant { justify-content: flex-end; }
.whatsapp-phone-mockup .message-container.assistant .message-bubble {
  background: var(--wa-outgoing);
  color: #111B21;
  border-radius: 8px 8px 4px 8px; /* TL TR BR BL */
}


/* Timestamp (inside bubble, right-aligned) + seen ticks for outgoing */
.whatsapp-phone-mockup .message-bubble .timestamp {
  display: inline-block;
  font-size: 11px;
  color: var(--wa-secondary);
  opacity: 0.95;
  margin-left: 8px;
  float: right; /* keep it to the right like WhatsApp */
}
.whatsapp-phone-mockup .message-container.assistant .message-bubble .timestamp::after {
  content: ' ✓✓';
  color: var(--wa-blue-tick);
  font-weight: 700;
  letter-spacing: -1px;
}

/* Typing indicator uses current bubble color */
.whatsapp-phone-mockup .typing-indicator .message-bubble {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
}
.whatsapp-phone-mockup .typing-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: 0.7;
  animation: wa-typing 1s infinite ease-in-out;
}
.whatsapp-phone-mockup .typing-dot:nth-child(2) { animation-delay: .15s; }
.whatsapp-phone-mockup .typing-dot:nth-child(3) { animation-delay: .30s; }
@keyframes wa-typing { 0%,80%,100%{transform:translateY(0)} 40%{transform:translateY(-4px)} }

/* Footer: beige background, white rounded input */
.whatsapp-phone-mockup .whatsapp-footer {
  background: var(--wa-bg);
  border-top: none;
  padding: 10px 12px;
}
.whatsapp-phone-mockup .input-field {
  background: #fff;
  border: none;
  box-shadow: 0 1px 0 var(--wa-shadow);
  border-radius: 999px;
  padding: 10px 12px;
  color: var(--wa-secondary);
}
.whatsapp-phone-mockup .input-field > span { color: var(--wa-secondary); }
.whatsapp-phone-mockup .input-icons { gap: 12px; }
.whatsapp-phone-mockup .input-icon {
  width: 20px; height: 20px;
  color: var(--wa-icon); /* SVG paths use currentColor */
  opacity: .9;
}
.whatsapp-phone-mockup .input-icon:hover { opacity: 1; }

/* Optional: slightly tighter vertical spacing on small screens */
@media (max-width: 420px) {
  .whatsapp-phone-mockup .message-bubble { font-size: 14px; }
}



/* 1) Make bubbles fit the text: remove default <p> margins inside bubbles */
.whatsapp-phone-mockup .message-bubble p {
  margin: 0;
}

/* 2) Remove dark borders from both bubbles and keep a very soft shadow */
.whatsapp-phone-mockup .message-container.client .message-bubble,
.whatsapp-phone-mockup .message-container.assistant .message-bubble {
  border: none;                /* overrides earlier border */
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

/* 3) Slightly reduce bubble padding and font size so the box isn’t oversized */
.whatsapp-phone-mockup .message-bubble {
  padding: 7px 9px 5px 9px;    /* top right bottom left */
  font-size: 14.5px;
  line-height: 1.35;
  max-width: 80%;
}

/* 4) Fine-tune the bubble “tails” to sit flush with no dark seam */
.whatsapp-phone-mockup .message-container.client .message-bubble::after,
.whatsapp-phone-mockup .message-container.assistant .message-bubble::after {
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

/* 5) WhatsApp background image (replace the URL with your Media Library URL) */
.whatsapp-phone-mockup { 
  /* Upload the green WhatsApp pattern PNG to Media Library and paste its URL below */
  --wa-bg-img: none;
}

/* Apply the background image (repeating pattern) */
.whatsapp-phone-mockup .whatsapp-chat-area {
  position: relative;                     /* allow pseudo elements if you ever need overlays */
  background-image: var(--wa-bg-img);
  background-repeat: repeat;
  background-position: top left;
  background-size: 360px auto;            /* tweak 320–400px depending on taste */
  /* If you prefer the beige WhatsApp look, also keep a base color under it: */
  background-color: #ECE5DD;
}

/* Optional: if the green looks too saturated, you can gently fade it with a translucent veil
.whatsapp-phone-mockup .whatsapp-chat-area::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(236, 229, 221, 0.35);  /* beige veil */
  pointer-events: none;
}


/* === WhatsApp fixes — no horizontal scroll, darker text, normal contact name === */

/* 1) Hide the horizontal scrollbar inside the chat area (bubble tails can cause it) */
.whatsapp-phone-mockup .whatsapp-chat-area {
  overflow-x: hidden;
}

/* Safety: prevent any inner element from forcing overflow */
.whatsapp-phone-mockup .whatsapp-chat-area * {
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
}

/* 2) Darker message text (override global p color) */
.whatsapp-phone-mockup .message-bubble,
.whatsapp-phone-mockup .message-bubble p {
  color: #111B21 !important; /* WhatsApp dark text, not grey */
}

/* 3) Remove bold effect on contact name in the green header */
.whatsapp-phone-mockup .whatsapp-header .contact-name {
  font-weight: 500; /* set 400 if you want it even lighter */
}

/* 4) Make the bubble box a touch tighter and guarantee no overflow from tails */
.whatsapp-phone-mockup .message-bubble {
  padding: 6px 9px 5px 9px;                /* slightly smaller top/bottom */
  max-width: calc(100% - 56px);            /* leaves room for tails; avoids horizontal scroll */
}

/* Ensure borders never reappear from earlier rules */
.whatsapp-phone-mockup .message-container.client .message-bubble,
.whatsapp-phone-mockup .message-container.assistant .message-bubble {
  border: none !important;
}







/* --- Falling Lines Background Effect (for Hero, Soluciones, and Simulation sections) --- */

/* --- FIX: Pull the content in front of the lines --- */
/* This targets the content wrapper in all three sections */
.hero .container,
.soluciones-hero .container,
.whatsapp-simulation-section .container {
  position: relative;
  z-index: 2;
}
/* --- End of Fix --- */

/* Add position:relative to sections so the lines stay inside them */
.whatsapp-simulation-section {
  position: relative;
}
/* The main hero already has position:relative from other styles, so it's fine */

/* The container for the lines, positioned within ANY of the targeted sections */
.hero .lines,
.soluciones-hero .lines,
.whatsapp-simulation-section .lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: space-around;
  z-index: 0;
  pointer-events: none;
}

/* A single vertical line */
.hero .line,
.soluciones-hero .line,
.whatsapp-simulation-section .line {
  position: relative;
  width: 1px;
  height: 100%;
  overflow: hidden;
}

/* The falling 'raindrop' effect for each line */
.hero .line::after,
.soluciones-hero .line::after,
.whatsapp-simulation-section .line::after {
  content: '';
  display: block;
  position: absolute;
  height: 15vh;
  width: 100%;
  top: -50%;
  left: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--color-accent-blue) 75%, var(--color-accent-blue) 100%);
  animation: drop 7s 0s infinite;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
}

/* --- Animation Keyframes (no change needed here) --- */
@keyframes drop {
  0% {
    top: -50%;
  }
  100% {
    top: 110%;
  }
}

/* --- Individual Line Colors & Delays (for all sections) --- */
.hero .line:nth-child(1)::after, .soluciones-hero .line:nth-child(1)::after, .whatsapp-simulation-section .line:nth-child(1)::after { animation-delay: 0.5s; }
.hero .line:nth-child(3)::after, .soluciones-hero .line:nth-child(3)::after, .whatsapp-simulation-section .line:nth-child(3)::after { animation-delay: 1.5s; }
.hero .line:nth-child(5)::after, .soluciones-hero .line:nth-child(5)::after, .whatsapp-simulation-section .line:nth-child(5):after { animation-delay: 2.5s; }
.hero .line:nth-child(7)::after, .soluciones-hero .line:nth-child(7)::after, .whatsapp-simulation-section .line:nth-child(7):after { animation-delay: 3.5s; }
.hero .line:nth-child(9)::after, .soluciones-hero .line:nth-child(9)::after, .whatsapp-simulation-section .line:nth-child(9):after { animation-delay: 4.5s; }
.hero .line:nth-child(11)::after, .soluciones-hero .line:nth-child(11)::after, .whatsapp-simulation-section .line:nth-child(11):after { animation-delay: 5.5s; }

.hero .line:nth-child(2)::after,
.soluciones-hero .line:nth-child(2)::after,
.whatsapp-simulation-section .line:nth-child(2)::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--color-accent-teal) 75%, var(--color-accent-teal) 100%);
  animation-delay: 1s;
}
.hero .line:nth-child(4)::after,
.soluciones-hero .line:nth-child(4)::after,
.whatsapp-simulation-section .line:nth-child(4)::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--color-accent-teal) 75%, var(--color-accent-teal) 100%);
  animation-delay: 2s;
}
.hero .line:nth-child(6)::after,
.soluciones-hero .line:nth-child(6)::after,
.whatsapp-simulation-section .line:nth-child(6)::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--color-accent-green) 75%, var(--color-accent-green) 100%);
  animation-delay: 3s;
}
.hero .line:nth-child(8)::after,
.soluciones-hero .line:nth-child(8)::after,
.whatsapp-simulation-section .line:nth-child(8)::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--color-accent-green) 75%, var(--color-accent-green) 100%);
  animation-delay: 4s;
}
.hero .line:nth-child(10)::after,
.soluciones-hero .line:nth-child(10)::after,
.whatsapp-simulation-section .line:nth-child(10)::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--color-accent-teal) 75%, var(--color-accent-teal) 100%);
  animation-delay: 5s;
}
.hero .line:nth-child(12)::after,
.soluciones-hero .line:nth-child(12)::after,
.whatsapp-simulation-section .line:nth-child(12):after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--color-accent-teal) 75%, var(--color-accent-teal) 100%);
  animation-delay: 6s;
}


/* --- MOBILE FALLING STARS FIX --- */
@media screen and (max-width: 768px) {
    
    /* 1. Contain the falling lines so they don't break the scroll */
    .hero, 
    .soluciones-hero, 
    .whatsapp-simulation-section {
        overflow: hidden !important; 
        position: relative !important;
    }

    /* 2. Optimize: Hide every 2nd line so it looks less cluttered */
    /* This leaves you with 6 lines, which is perfect for mobile width */
    .line:nth-child(even) {
        display: none !important;
    }

    /* 3. Enhance Visibility on Mobile Screens */
    .line {
        /* On high-res phones, 1px can be hard to see. We bump it to 1.5px or 2px */
        width: 2px !important; 
    }

    .hero .lines,
    .soluciones-hero .lines,
    .whatsapp-simulation-section .lines {
        /* Ensure lines sit safely behind the text (z-index 2) but above background */
        z-index: 0 !important;
        /* Slight opacity adjustment to ensure they don't distract from text */
        opacity: 0.8; 
    }

    /* 4. Speed & Size Control */
    .line::after {
        /* Keep the slow 7s speed. 
           Because phone screens are shorter, 7s covers less distance, 
           making it look naturally slow and elegant. */
        animation-duration: 7s !important; 
        
        /* Make the "raindrop" tail slightly shorter for mobile */
        height: 10vh !important; 
    }
}







/* --- WhatsApp Redesign: Step-based Controls --- */
.control-step {
    background-color: var(--color-background-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--color-background-tertiary);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    font-weight: 700;
}

.step-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-headings);
    margin: 0;
}

.step-content {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Unified Button Styles for all levels */
.category-btn,
.business-type-btn,
.use-case-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    /* Reset old styles */
    position: relative;
    box-shadow: none;
    min-height: 0;
    white-space: normal;
    text-align: center;
}

.category-btn::after {
    display: none; /* Remove old underline effect */
}

/* Hover State for all buttons */
.category-btn:hover,
.business-type-btn:hover,
.use-case-btn:hover {
    border-color: var(--color-accent-blue);
    color: var(--color-text-primary);
    transform: translateY(-2px);
}

/* Active State for all buttons */
.category-btn.active,
.business-type-btn.active,
.use-case-btn.active {
    background-color: var(--color-accent-blue);
    border-color: var(--color-accent-blue);
    color: var(--color-background-primary);
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(88, 166, 255, 0.2);
}

/* Remove old specific styles */
.category-buttons {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}
.use-case-buttons {
    padding-top: 0;
    border-top: none;
}
.btn-contact-sim {
    background: var(--color-accent-blue);
    color: var(--color-background-primary);
    border-radius: 8px;
    width: 100%;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}






/* --- Ultimate Canvas Stars (Z-Index Fixed) --- */
#space-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  /* Layer 1: Sits ON TOP of the page background color (usually Layer 0) */
  z-index: 1 !important; 
  
  /* Mouse clicks pass through to buttons/text underneath */
  pointer-events: none; 
}

/* Ensure Page Content is higher than the stars */
.servicios-page > section {
    position: relative;
    /* Layer 5: Sits ON TOP of the stars */
    z-index: 5; 
    /* GPU isolation for smooth scrolling */
    transform: translateZ(0); 
}

/* Ensure Footer covers the stars when you scroll down */
footer, .site-footer {
    position: relative !important;
    z-index: 10 !important; 
    /* CRITICAL: Must have a background color to hide stars behind it */
    background-color: var(--color-background-primary, #ffffff) !important; 
}






/* VOICE SHOWCASE ELEVENLABS */


/* --- Interactive Voice Showcase --- */
.voice-showcase-section {
    padding: 80px 0;
    background-color: var(--color-background-primary);
    position: relative;
    overflow: hidden;
}
.voice-showcase-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    /* --- New styles start here --- */
    background: var(--color-background-secondary); /* A slightly lighter dark background */
    border: 1px solid var(--color-border);       /* A subtle border */
    border-radius: var(--border-radius);         /* Rounded corners */
    padding: 3rem 2rem;                          /* Add some inner spacing (top/bottom, left/right) */
    box-shadow: var(--shadow-soft);              /* A soft shadow to lift it off the page */
}
.agent-list, .voice-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-weight: 600;
}
.agent-list { align-items: flex-end; }
.voice-list { align-items: flex-start; }

.agent-item, .voice-item {
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: color var(--transition-fast);
    padding: 0.5rem 1rem;
    border-radius: 50px;
}
.agent-item:hover, .voice-item:hover {
    color: var(--color-text-primary);
}
.agent-item.active, .voice-item.active {
    background-color: var(--color-background-tertiary);
    color: var(--color-text-headings);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.voice-showcase-center {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}
.disc-wrapper {
    position: absolute;
    width: 300px;
    height: 300px;
    animation: spin 20s linear infinite;
}
.disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        from 90deg, 
        #FFD700, #F0C400, #E0B200, #D4AF37, 
        #C0A000, #B09000, #A08000, #FFD700
    );
    filter: brightness(0.9) contrast(1.1);
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.call-button {
    position: relative;
    z-index: 2;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-background-primary);
    border: 3px solid var(--color-border);
    color: var(--color-text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-medium);
}
.call-button:hover {
    border-color: var(--color-accent-blue);
    transform: scale(1.05);
}
.call-button.active {
    border-color: var(--color-accent-green);
    animation: pulse-border 1.5s infinite;
}
.call-button svg {
    width: 32px;
    height: 32px;
}
@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(38, 203, 124, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(38, 203, 124, 0); }
    100% { box-shadow: 0 0 0 0 rgba(38, 203, 124, 0); }
}
.status-text {
    position: absolute;
    bottom: 20%;
    transform: translateY(50px);
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity var(--transition-fast);
}

/* Responsive adjustments for the showcase */
@media (max-width: 768px) {
    .voice-showcase-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .agent-list, .voice-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .voice-showcase-center { order: -1; }
    .status-text { bottom: 10%; }
}



/*AQUI ACABA VOICE SHOWCASE ELEVENLABS */





/* --- Features Grid Section --- */
.features-grid-section {
    background-color: var(--color-background-secondary); /* Correct grey background */
    position: relative;
    padding: 3rem 0 150px; 
}



/* Fade from this grey features section OUT TO the dark timeline section */
.features-grid-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--color-background-primary), transparent);
    z-index: 1;
}
.features-grid-header {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    text-align: center;
}
.features-tag {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent-teal);
    letter-spacing: 1px;
}
.features-grid-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.3;
}
.features-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem 2rem; /* Vertical and horizontal gap */
    max-width: 1000px;
    margin: 0 auto;
}
.feature-grid-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: flex-start;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--color-border);
}
/* Remove bottom border from the last row */
.features-grid-container > .feature-grid-item:nth-last-child(-n+2) {
    border-bottom: none;
}
.feature-grid-icon {
    color: var(--color-accent-blue);
}
.feature-grid-icon svg {
    width: 24px;
    height: 24px;
}
.feature-grid-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-headings);
}
.feature-grid-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    color: var(--color-text-secondary);
}

/* Responsive adjustments for the features grid */
@media (max-width: 768px) {
    .features-grid-container {
        grid-template-columns: 1fr;
    }
    .features-grid-container > .feature-grid-item:nth-last-child(-n+2) {
        border-bottom: 1px solid var(--color-border);
    }
    .features-grid-container > .feature-grid-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .feature-grid-item {
        padding-bottom: 2rem;
        gap: 1rem;
    }
}


/* --- Header Layout v2 (Centered Nav) --- */
.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* Left column, Center (auto-width), Right column */
    align-items: center;
    width: 100%;
}

.logo {
    justify-self: start; /* Align logo to the far left */
}

.main-nav {
    justify-self: center; /* Center the navigation menu */
}

.header-right {
    justify-self: end; /* Align mobile toggle to the far right */
}

/* Remove the gap from the logo link since the title is gone */
.logo a {
    gap: 0;
}

/* On mobile, revert to the old flex layout */
@media (max-width: 768px) {
    .header-content {
        display: flex;
        justify-content: space-between;
    }
    
    /* We don't need the right-side container on mobile */
    .header-right {
        display: contents;
    }
}





/* --- Pricing Card Display v2 --- */
.price-display {
    text-align: left;
    margin-bottom: 0.25rem;
    position: relative;
}

.free-months-tag {
    background-color: var(--color-accent-green);
    color: var(--color-background-primary);
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.card-price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 80px; /* Prevents layout shifts */
}

.card-price-wrapper .original-price {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    margin-bottom: -0.5rem;
    opacity: 0.7;
}

.card-price-wrapper .card-price {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-headings);
}

.pricing-card.card-pro .free-months-tag {
    background-color: var(--color-accent-blue);
}



/* --- Animated Gradient Background Section --- */
/* --- Animated Gradient Background Section --- */
.animated-gradient-background {
  position: relative; /* Needed to contain the animation */
  background: linear-gradient(132deg, var(--color-background-primary), var(--color-accent-green), var(--color-accent-blue), var(--color-background-primary));
  background-size: 400% 400%;
  animation: BackgroundGradient 10s ease infinite;
}

@keyframes BackgroundGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}







/* --- Final Faded Section Divider & Background --- */

/* 1. Set the background color for the voice showcase section */
.voice-showcase-section {
    background-color: var(--color-background-secondary); /* This sets the lighter #161B22 background */
    position: relative; /* Crucial for positioning the fade effect */
    padding-top: 130px; /* Increase top padding to make space for the fade */
}

/* 2. Create the smooth fade-in effect */
.voice-showcase-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px; /* Controls the height/intensity of the fade */
    background: linear-gradient(
        to bottom,
        var(--color-background-primary), /* Starts with the darker color (#0D1117) */
        transparent /* Fades to transparent, revealing the section's new background */
    );
    z-index: 1;
}








/* --- Visual Process Timeline Section (Fancy Design) --- */




.process-timeline-section .container {
    position: relative;
    z-index: 2;
}

.timeline-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.timeline-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.timeline-content {
    background: var(--color-background-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.timeline-content:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
}

.timeline-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(88, 166, 255, 0.1);
    color: var(--color-accent-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-accent-blue);
}

.timeline-icon svg {
    width: 28px;
    height: 28px;
}

.timeline-step {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-accent-blue);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.timeline-item h3 {
    font-size: 1.5rem;
    color: var(--color-text-headings);
    margin-bottom: 1rem;
}

.timeline-item p {
    color: var(--color-text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

.timeline-connector {
    flex: 0 0 80px; /* Base width */
    height: 2px;
    background-color: var(--color-border);
    position: relative;
}

.timeline-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -4px;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--color-border);
    border-right: 2px solid var(--color-border);
    transform: translateY(-50%) rotate(45deg);
}

/* Responsive styles for the timeline */
@media (max-width: 900px) {
    .timeline-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .timeline-item {
        width: 100%;
        max-width: 450px; /* Prevents cards from being too wide on tablet */
    }

    .timeline-connector {
        width: 2px;
        height: 60px;
        flex-basis: 60px; /* Set a fixed height */
    }

    .timeline-connector::after {
        top: auto;
        bottom: -4px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) rotate(135deg); /* Point down */
    }
}




/* --- Spacing Helper Class --- */
.no-bottom-padding {
    padding-bottom: 0% !important; /* Reduces the bottom space significantly */
}






/* --- Waving Text Animation for Popular Tag --- */
.wave-text-container span {
    display: inline-block;
    animation: wave-subtle 2s ease-in-out infinite;
    will-change: transform; /* Hardware acceleration hint */
    transform: translateZ(0); /* Force GPU rendering */
}

/* The space shouldn't move, so we give it its own class to exclude it */
.wave-text-container span.wave-space {
    animation: none;
}

/* Keyframe for the subtle wave */
@keyframes wave-subtle {
    0%, 100% {
        transform: translateY(0) translateZ(0);
    }
    50% {
        transform: translateY(-2px) translateZ(0);
    }
}

/* Animation delays for each letter of "Mejor oferta" */
.wave-text-container span:nth-child(1) { animation-delay: 0s; }
.wave-text-container span:nth-child(2) { animation-delay: 0.1s; }
.wave-text-container span:nth-child(3) { animation-delay: 0.2s; }
.wave-text-container span:nth-child(4) { animation-delay: 0.3s; }
.wave-text-container span:nth-child(5) { animation-delay: 0.4s; }
/* nth-child(6) is the space, which has no animation */
.wave-text-container span:nth-child(7) { animation-delay: 0.5s; }
.wave-text-container span:nth-child(8) { animation-delay: 0.6s; }
.wave-text-container span:nth-child(9) { animation-delay: 0.7s; }
.wave-text-container span:nth-child(10) { animation-delay: 0.8s; }
.wave-text-container span:nth-child(11) { animation-delay: 0.9s; }
.wave-text-container span:nth-child(12) { animation-delay: 1.0s; }





/* --- Neon Lights Text Effect --- */
.text-lights-effect {
    font-weight: 300; /* Use a lighter font weight for the neon look */
    animation: lights 5s 750ms linear infinite;
    /* Add these lines to set the initial state and prevent the flash */
    color: hsl(230, 40%, 60%);
    text-shadow:
      0 0 1em hsla(320, 100%, 50%, 0.2),
      0 0 0.125em hsla(320, 100%, 60%, 0.3),
      -1em -0.125em 0.5em hsla(40, 100%, 60%, 0),
      1em 0.125em 0.5em hsla(200, 100%, 60%, 0);
}

@keyframes lights {
  0% {
    color: hsl(230, 40%, 60%);
    text-shadow:
      0 0 1em hsla(320, 100%, 50%, 0.2),
      0 0 0.125em hsla(320, 100%, 60%, 0.3),
      -1em -0.125em 0.5em hsla(40, 100%, 60%, 0),
      1em 0.125em 0.5em hsla(200, 100%, 60%, 0);
  }
  30% { 
    color: hsl(230, 80%, 70%);
    text-shadow:
      0 0 1em hsla(320, 100%, 50%, 0.5),
      0 0 0.125em hsla(320, 100%, 60%, 0.5),
      -0.5em -0.125em 0.25em hsla(40, 100%, 60%, 0.2),
      0.5em 0.125em 0.25em hsla(200, 100%, 60%, 0.4);
  }
  40% { 
    color: hsl(230, 100%, 75%);
    text-shadow:
      0 0 1em hsla(320, 100%, 50%, 0.5),
      0 0 0.125em hsla(320, 100%, 90%, 0.5),
      -0.25em -0.125em 0.125em hsla(40, 100%, 60%, 0.2),
      0.25em 0.125em 0.125em hsla(200, 100%, 60%, 0.4);
  }
  70% {
    color: hsl(230, 80%, 70%);
    text-shadow:
      0 0 1em hsla(320, 100%, 50%, 0.5),
      0 0 0.125em hsla(320, 100%, 60%, 0.5),
      0.5em -0.125em 0.25em hsla(40, 100%, 60%, 0.2),
      -0.5em 0.125em 0.25em hsla(200, 100%, 60%, 0.4);
  }
  100% {
    color: hsl(230, 40%, 60%);
    text-shadow:
      0 0 1em hsla(320, 100%, 50%, 0.2),
      0 0 0.125em hsla(320, 100%, 60%, 0.3),
      1em -0.125em 0.5em hsla(40, 100%, 60%, 0),
      -1em 0.125em 0.5em hsla(200, 100%, 60%, 0);
  }
}







/* --- Custom Hero Title Alignment --- */
.hero-title-aligned {
    display: inline-block; 
    text-align: middle;      
}

/* MODIFIED: Only targets direct children spans */
.hero-title-aligned > span {
    display: block; 
}

/* MODIFIED: Only targets the last direct child span */
.hero-title-aligned > span:last-child {
    padding-right: 2.2rem; 
}

.underline-dashed {
    text-decoration: underline dashed;
}





/* Performance: reduce motion and heavy effects when requested */
@media (prefers-reduced-motion: reduce) {
  .animated-gradient-background,
  .disc-wrapper,
  .lines .line::after,
  #stars, #stars2, #stars3,
  .text-lights-effect,
  .wave-text-container span {
    animation: none !important;
  }
}

/* Hint the compositor for smoother transitions (kept minimal to avoid overuse) */
.lines .line::after,
.disc-wrapper,
.message-container,
.animate-on-scroll {
  will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        transition: none !important;
    }
    .animate-on-scroll.is-visible {
        opacity: 1;
        transform: none;
    }
}




/* --- Accessibility Improvements --- */
button:focus, 
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 2px;
}
button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
  outline: none;
}
/* Make focus visible on main when we programmatically move focus there */
main:focus,
#main:focus {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 2px;
}
main:focus:not(:focus-visible),
#main:focus:not(:focus-visible) {
  outline: none; /* hide if focus came from mouse */
}

.sr-only:focus {
  clip: auto;
  height: auto;
  width: auto;
  display: block;
  padding: 15px;
  background: var(--color-background-primary);
  border: 2px solid var(--color-accent-blue);
  z-index: 10000;
}





/* Performance: reduce motion and heavy effects when requested */
@media (prefers-reduced-motion: reduce) {
  .animated-gradient-background,
  .disc-wrapper,
  .lines .line::after,
  #stars, #stars2, #stars3,
  .text-lights-effect,
  .wave-text-container span {
    animation: none !important;
  }
}

/* Hint the compositor for smoother transitions (kept minimal to avoid overuse) */
.lines .line::after,
.disc-wrapper,
.message-container,
.animate-on-scroll {
  will-change: transform, opacity;
}

/* Mobile: soften GPU-heavy blur for better battery/FPS */
@media (max-width: 768px) {
  .site-header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}



/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: -60px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-accent-blue);
    color: var(--color-background-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: bottom 0.3s ease, opacity 0.3s ease;
    z-index: 99;
}

.back-to-top.visible {
    bottom: 30px;
    opacity: 1;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: opacity 0.1s ease;
    }
    .back-to-top.visible {
        bottom: 30px;
    }
}






/* --- Form Validation Styling --- */
.invalid-field {
    border-color: #ff5252 !important;
    box-shadow: 0 0 0 1px #ff5252 !important;
}

.error-message {
    color: #ff5252;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
}






/* --- Interactive Showcase Section (Soluciones Page) --- */
.interactive-showcase-section {
    background-color: var(--color-background-primary);
    position: relative;
    padding: 0 0 70px; /* Padding at the bottom for the fade-out */
    border: none;
}


/* --- Styles for buttons and content area (No changes here, but included for completeness) --- */
.interactive-showcase-section .container {
    position: relative;
    z-index: 2;
}

.showcase-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.showcase-btn {
    background-color: var(--color-background-primary);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.showcase-btn:hover {
    color: var(--color-text-primary);
    border-color: var(--color-accent-blue);
}

.showcase-btn.active {
    background-color: var(--color-accent-blue);
    color: var(--color-background-primary);
    border-color: var(--color-accent-blue);
    box-shadow: var(--shadow-glow);
}

.showcase-content-area {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.showcase-content { display: none; }
.showcase-content.active { display: block; }

.showcase-content-area .whatsapp-simulation-section,
.showcase-content-area .voice-showcase-section,
.showcase-content-area .features-grid-section {
    padding: 0;
    background: none;
    border: none;
}
.showcase-content-area .whatsapp-simulation-section::before,
.showcase-content-area .voice-showcase-section::before,
.showcase-content-area .features-grid-section::before {
    display: none;
}











/* --- Pricing Modal --- */
.pricing-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pricing-modal[hidden] {
    display: none;
}

.pricing-modal:not([hidden]) {
    display: flex;
}

body.modal-open .pricing-modal {
    opacity: 1;
    visibility: visible;
}

body.modal-open .site-main,
body.modal-open .site-header {
    filter: blur(4px);
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 17, 23, 0.7);
    outline: none; /* Add this to prevent focus ring */
}
.modal-overlay:focus {
    outline: none !important;
    box-shadow: none !important; /* This will remove any residual glow or shadow effect */
}


.modal-content {
    position: relative;
    background-color: var(--color-background-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2001;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

body.modal-open .modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: color var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--color-text-primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-headings);
}

.modal-header p {
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-bottom: 0;
}

.pricing-modal-form .form-group {
    margin-bottom: 1.5rem;
}

.pricing-modal-form .form-submit {
    margin-top: 2rem;
}

.pricing-modal-form .card-button {
    width: 100%;
    background-color: var(--color-accent-blue);
    border-color: var(--color-accent-blue);
    color: var(--color-background-primary);
}

.pricing-modal-form .card-button:hover {
    background-color: var(--color-accent-teal);
    border-color: var(--color-accent-teal);
}

/* --- Pricing Modal Selection Summary --- */
.modal-selection-summary {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: var(--color-background-primary);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    font-size: 0.9rem;
    text-align: left;
}

.modal-selection-summary h4 {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.modal-selection-summary ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    color: var(--color-text-primary);
}

.modal-selection-summary li {
    margin-bottom: 0.5rem;
}









/* --- Comparison Table Section --- */
.comparison-section {
    padding: 80px 0 150px; /* MODIFIED: Increased bottom padding */
    position: relative;
    background-color: var(--color-background-secondary);
}

/* NEW: Add this pseudo-element to create the fade-out effect */
.comparison-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px; /* Height of the fade effect */
    background: linear-gradient(to top, var(--color-background-primary), transparent);
    z-index: 1;
}

/* Optional: Add a fade effect if it follows a dark section */
.comparison-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, var(--color-background-primary), transparent);
    z-index: 1;
}
.comparison-section .container {
    position: relative;
    z-index: 2;
}

.comparison-table {
    background-color: var(--transparent);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--color-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.comparison-header {
    display: grid;
    grid-template-columns: 2fr 3fr 3fr;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    align-items: center;
}

.feature-col-header {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-text-headings);
    padding-left: 1rem;
}

.competitor-col-header,
.bot-col-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-text-headings);
}

.header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
}
.header-icon.human-icon {
    background-color: rgba(177, 188, 197, 0.15);
    color: var(--color-text-secondary);
	margin-left: -3.6px;
}
.header-icon.bot-icon {
    background-color: transparent;
    padding: 0;
	margin-left: -2.5px;
    width: 24px; /* Adjust size to match human icon */
    height: 24px;
}
.header-icon.bot-icon img {
    object-fit: contain;
}
.header-icon svg,
.header-icon img {
    width: 100%;
    height: 100%;
}

.comparison-body {
    display: flex;
    flex-direction: column;
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 3fr 3fr;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--color-border);
    transition: background-color var(--transition-fast);
}

.comparison-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.comparison-row:first-child {
    padding-top: 1.25rem;
}

.comparison-row:hover {
    background-color: var(--color-background-primary); /* --color-background-tertiary with alpha */
}

.feature-col {
    font-weight: 600;
    color: var(--color-text-primary);
    padding-left: 1rem;
}

.competitor-col,
.bot-col {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-secondary);
}

.check-icon {
    flex-shrink: 0;
}
.check-icon svg {
    width: 20px;
    height: 20px;
	transform: translateY(4px); /* NEW: Nudges the icon down slightly */
}
.check-icon.neutral {
    color: var(--color-text-secondary);
    opacity: 0.7;
}
.check-icon.positive {
    color: var(--color-accent-teal);
}


/* --- COMPARISON TABLE MOBILE OPTIMIZATION --- */
@media screen and (max-width: 768px) {

    /* 1. Hide the main table header (it doesn't fit on mobile) */
    .comparison-header {
        display: none;
    }

    /* 2. Turn the container into a transparent stack */
    .comparison-table {
        padding: 0 !important;
        background: transparent;
        border: none !important;
        box-shadow: none;
		overflow: visible !important;
		
    }


    /* 3. Turn each ROW into a "Card" */
    .comparison-row {
        display: grid;
        /* Create a grid: Feature title on top, Human & Bot side-by-side below */
        grid-template-columns: 1fr 1fr; 
        gap: 15px;
		align-items: start; 
        
        background-color: var(--color-background-primary, #fff);
        border: 1px solid var(--color-border);
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 15px; /* Space between cards */
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
		
    }

    /* Remove the hover effect on mobile (it can be sticky) */
    .comparison-row:hover {
        background-color: var(--color-background-primary, #fff);
    }

    /* 4. Feature Title (Span full width at top) */
    .feature-col {
        grid-column: 1 / -1; /* Make it span both columns */
        text-align: center;
        font-size: 1.1rem;
        color: var(--color-text-headings);
        border-bottom: 1px solid var(--color-border);
        padding: 0 0 10px 0;
        margin-bottom: 5px;
    }

    /* 5. Content Columns (Human & Bot) */
    .competitor-col,
    .bot-col {
        position: relative; /* Establishes anchor for absolute positioning */
        padding-top: 30px;  /* Creates empty space at the top for the Title + Icon */
        font-size: 0.95rem;
        line-height: 1.5;
        color: var(--color-text-secondary);
    }

    /* 6. The Titles ("Humano" / "Arure") */
    .competitor-col::before,
    .bot-col::before {
        position: absolute;
        top: 0;
        left: 0;
        font-size: 0.8rem;
        text-transform: uppercase;
        font-weight: 800;
        letter-spacing: 0.5px;
    }

    .competitor-col::before {
        content: 'Humano';
        color: var(--color-text-tertiary, #999);
    }

    .bot-col::before {
        content: 'Arure';
        color: var(--color-accent-teal, #00bfa5);
    }

    /* 7. The Check/Tick Icons - Moved to Top Line */
    .check-icon {
        position: absolute; /* Take it out of the text flow */
        top: -5px; /* Align vertically with the title */
        width: 20px;
        height: 20px;
    }

    /* specific positioning for "Humano" tick */
    .competitor-col .check-icon {
        left: 70px; /* Places it right after the word "Humano" */
    }

    /* specific positioning for "Arure" tick */
    .bot-col .check-icon {
        left: 55px; /* Places it right after the word "Arure" */
    }

    .comparison-row:last-child {
        padding-bottom: 20px !important; /* Match the 20px padding of other cards */
        border-bottom: 1px solid var(--color-border) !important; /* Restore border if missing */
        margin-bottom: 0; 
    }


}






/* --- Logo Marquee / Scroller (v7 - In-Section) --- */
.logo-marquee-section {
    background-color: transparent; /* Makes background match the section */
    padding: 4rem 0 0; /* Adjust vertical spacing */
    position: relative;
    z-index: 1;

}

.logo-marquee {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marquee-scroll-right 30s linear infinite;
    will-change: transform;
}

.marquee-logo {
    width: 80px;
    padding: 0 40px;
    flex-shrink: 0;
    box-sizing: content-box;
}

.marquee-logo img {
    height: 50px;
    width: 100%;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-logo:hover img {
    opacity: 1;
}

@keyframes marquee-scroll-right {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }
    .logo-marquee {
      mask-image: none;
      -webkit-mask-image: none;
    }
}




/* --- Homepage Specific Fixes --- */

/* 
 * Removes the bottom fade effect from the features grid section 
 * ONLY on the homepage, where it is followed by the footer.
 */
body.home .features-grid-section {
    padding-bottom: 80px; /* Restores a normal bottom padding */
}

body.home .features-grid-section::after {
    display: none; /* Disables the fade pseudo-element */
}








/* --- Footer Social Icons --- */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allows items to wrap on small screens */
    gap: 1.5rem; /* Adds space between text and icons if they wrap */
}

.footer-copyright {
    margin-bottom: 0; /* Removes default paragraph margin */
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 1.25rem; /* Space between each icon */
}

.footer-social-links a {
    color: var(--color-text-secondary);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-social-links a:hover {
    color: var(--color-accent-blue);
    transform: translateY(-2px); /* Slight lift effect on hover */
}

/* On smaller screens, center the footer content */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}



.footer-social-links a[aria-label="WhatsApp"] svg path:nth-of-type(2) {
transform: translate(-0.2px, 0.5px);}

.footer-social-links a[aria-label="WhatsApp"] svg path:first-of-type {
  stroke-width: 0;
}










/* --- WhatsApp Simulation: Interactive Input --- */
.whatsapp-footer {
    padding: 6px 10px;
    background-color: #1e2a32; /* Slightly different footer color */
}

.whatsapp-input-form {
    display: flex;
    align-items: center;
    width: 100%;
}

.whatsapp-input {
    flex-grow: 1;
    border: none;
    background-color: var(--color-background-tertiary);
    color: var(--color-text-primary);
    padding: 10px 15px;
    border-radius: 20px;
    font-family: var(--font-primary);
    font-size: 15px;
    outline: none;
}

.whatsapp-input::placeholder {
    color: #8a9a9a;
}

.whatsapp-send-btn {
    background: var(--color-accent-teal);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-background-primary);
    transition: background-color var(--transition-fast);
    flex-shrink: 0;
}

.whatsapp-send-btn:hover {
    background-color: var(--color-accent-green);
}

.whatsapp-send-btn svg {
    width: 24px;
    height: 24px;
}







/* --- Language Dropdown --- */
.header-right {
    display: flex !important; /* Force items to sit in a row */
    flex-direction: row;      /* Explicitly horizontal */
    align-items: center;      /* Vertically center them */
}

/* Optional: Ensure the dropdown itself doesn't try to be 100% width */
.language-dropdown {
    width: auto;
    flex-shrink: 0; /* Prevents it from getting squashed */
    position: relative;
    display: inline-block;
    z-index: 200; /* Ensure it floats above other header elements */
}

/* The Trigger Button */
.lang-toggle {
    background: transparent;
    border: 1px solid var(--color-border); /* Subtle border */
    border-radius: 20px;
    padding: 6px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.lang-toggle:hover {
    background-color: var(--color-background-tertiary);
}

.lang-toggle .flag-icon {
    width: 22px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
    display: block;
}

.dropdown-arrow {
    font-size: 0.6rem;
    color: var(--color-text-secondary);
}

/* The Menu (Hidden by default) */
.lang-menu {
    position: absolute;
    top: 120%; /* Pushes it slightly below the button */
    right: 0;
    min-width: 160px;
    background-color: var(--color-background-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 8px 0;
    margin: 0;
    list-style: none;
    
    /* Animation: Fade in + Slide down */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

@media screen and (min-width: 769px) {
    .language-dropdown:hover .lang-menu,
    .language-dropdown:focus-within .lang-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* --- Mobile: Show on Click (.active class) ONLY --- */
@media screen and (max-width: 768px) {
    /* Hide by default (even if hovered/focused) */
    .lang-menu {
        opacity: 0;
        visibility: hidden;
        display: block; /* Ensure it's rendered for animation */
    }

    /* ONLY show when JS adds the 'active' class */
    .language-dropdown.active .lang-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) translateX(50%) !important; /* Keep your centering */
        z-index: 10000;
    }
}

/* Menu Items */
.lang-menu li {
    margin: 0;
}

.lang-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--color-text-primary);
    font-size: 0.9rem;
    transition: background-color var(--transition-fast);
}

.lang-menu a:hover {
    background-color: var(--color-background-tertiary);
    color: var(--color-accent-teal);
}

.lang-menu .flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}




/* Container: The "Track" of the switch */
#theme-toggle {
    appearance: none;
    background: var(--color-background-tertiary); /* Light grey track */
    border: 1px solid var(--color-border);
    border-radius: 20px; /* Pill shape */
    width: 52px;
    height: 28px;
    padding: 2px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    overflow: visible; /* CHANGED: Visible to allow the separator line outside */
    
    /* New Alignment Styles */
    margin-left: 1.5rem; /* Space between language flags and line */
    flex-shrink: 0;      /* Prevent button from squishing */
}

/* THE SEPARATOR LINE */
#theme-toggle::before {
    content: '';
    position: absolute;
    left: -0.75rem; /* Position line halfway in the margin gap */
    top: 50%;
    transform: translateY(-50%);
    height: 24px;   /* Height of the separator */
    width: 1px;
    background-color: var(--color-border); /* Color of the line */
    opacity: 0.6;
}

/* The Moving Circle (Knob) - No changes here */
#theme-toggle::after {
    content: "";
    width: 22px;
    height: 22px;
    background-color: #FFFFFF;
    border-radius: 50%;
    position: absolute;
    left: 2px;
    top: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1;
}

/* Common Icon Styles - No changes here */
.sun-icon, .moon-icon {
    position: absolute;
    width: 14px;
    height: 14px;
    z-index: 2;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.3s ease;
    color: var(--color-text-secondary);
}

/* --- LIGHT MODE STATE (Default) --- */
.sun-icon {
    left: 6px;
    opacity: 1;
    transform: rotate(0deg);
    color: #F59E0B;
}

.moon-icon {
    left: 6px;
    opacity: 0;
    transform: translateX(20px) rotate(-90deg);
}

/* --- DARK MODE STATE (Active) --- */
[data-theme="dark"] #theme-toggle {
    background-color: var(--color-accent-blue);
    border-color: var(--color-accent-blue);
}

[data-theme="dark"] #theme-toggle::after {
    transform: translateX(24px);
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: translateX(20px) rotate(90deg);
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: translateX(24px) rotate(0deg);
    color: var(--color-accent-blue);
}






/* --- User Bubble Styling --- */

/* 1. Push the bubble to the right */
/* This separates the bubble from the rest of the menu links */
.user-bubble-item {
    position: absolute;  /* Detaches the item from the menu flow */
    right: 40px;            /* Pins it to the far right edge of the menu container */
    top: 50%;            /* Centers it vertically */
    transform: translateY(-50%); /* Ensures perfect vertical centering */
    list-style: none;
}

/* 2. Base styles for the link/button inside the bubble */
.bubble-link {
    display: flex !important;
    justify-content: center;
    align-items: center;
    text-decoration: none !important;
    font-weight: bold !important;
    line-height: 1 !important;
    transition: background 0.3s ease;
}

/* 3. Style for the Logged-In User (The Circle) */
.bubble-link.logged-in-circle {
    background-color: #0056b3; /* Blue background like Google (change as needed) */
    color: #ffffff !important;
    width: 40px;     /* Size of the circle */
    height: 40px;    /* Size of the circle */
	right: 20px;
    border-radius: 50%; /* Makes it a perfect circle */
    font-size: 18px;
    padding: 0 !important; /* Removes standard menu padding */
	margin: 0;
	text-indent: -0.9px !important;
}

.bubble-link.logged-in-circle span {
    position: relative;
    
    /* Change this number to move the letter. */
    /* 2px moves it DOWN. -2px moves it UP. */
    top: 1px; 
    
    /* Ensures line-height doesn't interfere */
    line-height: 1 !important; 
    display: block; 
}

.bubble-link.logged-in-circle:hover {
    background-color: #004494; /* Darker blue on hover */
}

/* 4. Style for the Logged-Out User (The "Login" Pill) */
.bubble-link.login-pill {
    background-color: #0056b3; 
    color: #ffffff !important;
    border-radius: 20px; /* Makes it pill-shaped */
    padding: 8px 20px !important; /* Adjust padding for button size */
    font-size: 14px;
}

.bubble-link.login-pill:hover {
    background-color: #004494;
}

/* OPTIONAL: Ensure the parent menu container allows pushing to the right */
/* If the menu items are stacked or not moving right, you might need this: */
.menu, .nav-menu, ul#primary-menu {
    display: flex;
    align-items: center;
    justify-content: center; /* Ensures your main links stay centered */
    position: relative;      /* CRITICAL: Keeps the absolute bubble inside this area */
    width: 100%;
}


/* --- Remove Theme Hover Underline from Bubble --- */

/* 1. Hide pseudo-elements often used for animated underlines */
.user-bubble-item a::after,
.user-bubble-item a::before {
    display: none !important;
    content: none !important;
    width: 0 !important;
    background: none !important;
}

/* 2. Remove standard borders or box-shadows */
.user-bubble-item a,
.user-bubble-item a:hover {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}






/* --- Mobile Menu --- */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 22px;
    position: relative;
}

.mobile-menu-toggle .icon-bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-text-primary);
    border-radius: 2px;
    transition: all var(--transition-medium);
    position: absolute;
    left: 0;
}


.mobile-menu-toggle .icon-bar:nth-child(2) { 
    top: 0; 
}
.mobile-menu-toggle .icon-bar:nth-child(3) { 
    top: 50%; 
    transform: translateY(-50%); 
}
.mobile-menu-toggle .icon-bar:nth-child(4) { 
    bottom: 0; 
}

.mobile-menu-toggle.active .icon-bar:nth-child(2) { 
    top: 50%; 
    transform: translateY(-50%) rotate(45deg); 
}
.mobile-menu-toggle.active .icon-bar:nth-child(3) { 
    opacity: 0; 
}
.mobile-menu-toggle.active .icon-bar:nth-child(4) { 
    bottom: 50%; 
    transform: translateY(50%) rotate(-45deg); 
}

@media screen and (max-width: 768px) {

    /* Target the container to move it from "Center" to "Top-Right" */
    #main-nav {
        /* 1. Reset the "Middle of screen" styles you currently have */
        display: none;         /* Default state is hidden */
        left: auto !important; /* Stop centering horizontally */
        bottom: auto;          /* Stop centering vertically */
        transform: none !important; /* Remove any center translation */
        
        /* 2. Apply the new "Dropdown" position */
        position: absolute; 
        top: 100%;       /* Start exactly at the bottom of the header */
        right: 0;        /* Align to the right edge */
        
        /* 3. Dropdown Styling */
        width: 250px;    /* A good standard width for dropdowns */
        background-color: var(--color-bg-primary, #fff); 
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        z-index: 9999;
        flex-direction: column; /* Force items to stack vertically */
    }

    /* When the JS adds the 'active' class, show it as flex */
    #main-nav.active {
        display: flex; 
    }


    /* 1. Control the Order of items */
    /* Page Links go first */
    #main-nav > ul {
        order: 1;
        width: 100%;
        margin-bottom: 20px; /* Space below links */
        padding-left: 0;
    }



    /* --- 3. Language Dropdown Placement --- */
    /* UPDATED: We target the NEW class name */
    .language-dropdown {
        order: 3;          /* 1. Force it to be the last item */
        width: 100%;       /* 2. Take full width of the menu */
        display: flex;     
        justify-content: center; /* 3. Center the button horizontally */
        margin-bottom: 5px; 
        position: relative; 
    }

    /* Adjust the popup menu position specifically for the mobile menu */
    .language-dropdown .lang-menu {
        right: 50%; /* Center the list relative to the button */
        transform: translateX(50%) translateY(10px); 
        width: auto; 
        min-width: 140px; 
        text-align: left;
    }
    
    /* Ensure the hover/focus state maintains the center position */
    .language-dropdown:hover .lang-menu, 
    .language-dropdown:focus-within .lang-menu {
        transform: translateX(50%) translateY(0);
    }
	
	
.mobile-btn-row {
    display: flex;
    align-items: center; /* Vertically center items */
    justify-content: flex-start; /* Align row to the left */
    gap: 20px; /* Space between Login and Theme Toggle */
    width: 100%;
    margin-bottom: 20px;
    order: 2; /* Places it below the links but above languages */
}

/* --- CRITICAL FIX: Reset Login Button Positioning --- */
/* We force the login button to stop floating and sit normally in the row */
.mobile-btn-row .user-bubble-item {
    position: static !important; /* Disables 'absolute' */
    transform: none !important;  /* Removes vertical centering transform */
    right: auto !important;
    top: auto !important;
    margin: 0;
    width: auto; /* Let it wrap the content naturally */
	margin-left: 20px; 
}

/* Optional: Adjust the inner link if needed */
.mobile-btn-row .bubble-link {
    /* Ensure it doesn't have extra margins blocking the theme icon */
    margin: 0;
}

.mobile-menu-toggle {
    display: block; /* Show the button on mobile! */
}
	

    /* --- FORCE DARK MENU (Robust Version) --- */
    
    /* 1. Target if class is on HTML or BODY tag */
    html.dark #main-nav, 
    html.dark-mode #main-nav,
    body.dark #main-nav,
    body.dark-mode #main-nav,
    /* 2. Target if using data-attributes (common in modern themes) */
    [data-theme="dark"] #main-nav {
        
        /* Force a dark background (Dark Grey) */
        background-color: #1f1f1f !important; 
        
        /* If you have a CSS variable for dark bg, uncomment the next line: */
        /* background-color: var(--color-bg-primary, #1f1f1f) !important; */
        
        box-shadow: 0 5px 20px rgba(0,0,0,0.9);
        border: 1px solid #333;
    }

    /* Force Text Color to White in Dark Mode */
    html.dark #main-nav a, 
    body.dark #main-nav a,
    [data-theme="dark"] #main-nav a {
        color: #ffffff !important;
    }

    /* Fix the specific buttons inside the menu if they look weird */
    html.dark #main-nav .bubble-link,
    body.dark #main-nav .bubble-link {
        color: #fff !important;
    }
	
	
}





/* --- WHATSAPP MOBILE send button fixed --- */
@media screen and (max-width: 768px) {

    /* 1. Fix the footer box sizing so padding doesn't cause overflow */
    .whatsapp-footer {
        box-sizing: border-box; /* Ensures padding is included in width */
        padding: 10px; /* Slightly reduce side padding if needed */
    }

    /* 2. Form Container */
    .whatsapp-input-form {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* 3. THE MAGIC FIX: Allow the input to shrink */
    .whatsapp-input {
        /* "min-width: 0" tells Flexbox: "It's okay to shrink smaller than default" */
        min-width: 0; 
        flex-basis: auto; /* Let it calculate size naturally */
        /* Optional: slightly smaller font for mobile input to prevent zoom */
        font-size: 14px; 
    }

    /* 4. Adjust the button size slightly for mobile */
    .whatsapp-send-btn {
        width: 40px;   /* Reduce from 44px to 40px */
        height: 40px;
        margin-left: 8px; /* Tighten the gap */
    }
}




@media screen and (max-width: 768px) {
    .whatsapp-simulation-section, 
    .whatsapp-phone-mockup-container {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Ensure the phone mockup scales down properly */
    .whatsapp-phone-mockup {
        max-width: 100%;
        margin: 0 auto;
    }
}









/*LOGIN PAGE EMPIEZA AQUI */


        /* --- RESET & LAYOUT --- */
body.my-custom-login-page {
    margin: 0; padding: 0; min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden; 
    background: #fff; /* Now this only paints the login page white */
}
        .login-split-screen { display: flex; min-height: 100vh; width: 100%; }

        /* --- LEFT SIDE --- */
        .login-left {
            width: 50%; background: #ffffff;
            display: flex; flex-direction: column;
            justify-content: center; align-items: center;
            padding: 40px; position: relative;
        }
        .login-wrapper { width: 100%; max-width: 420px; }

/* Logo Area */
.brand-logo {
    position: absolute; 
    top: 40px; 
    left: 40px;
    z-index: 10; /* Ensures it stays above other elements */
}

/* Force the image to be smaller */
.brand-logo img {
    width: 150px;  /* Adjust this number to make it bigger/smaller */
    height: auto;  /* Maintains the correct aspect ratio */
    display: block;
}

        /* Headings */
        .login-header { text-align: center; margin-bottom: 40px; }
        .login-header h1 { font-size: 28px; font-weight: 600; margin: 0 0 10px 0; color: #1f2937; }
        


        /* --- FORM STYLING --- */
        .login-form-container form p { margin-bottom: 20px; }
        .login-form-container label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; color: #374151; }
        
        .login-form-container input[type="text"],
        .login-form-container input[type="password"] {
            width: 100%; padding: 12px 16px; border: 1px solid #d1d5db;
            border-radius: 6px; font-size: 16px; color: #111; box-sizing: border-box;
        }

        /* Error States */
.input-error { 
    border-color: #dc2626 !important; 
    background-color: transparent !important; /* Removes the red fill */
}
        
        .error-message-box {
            background-color: #fef2f2; border: 1px solid #f87171; color: #b91c1c;
            padding: 12px; border-radius: 6px; margin-bottom: 20px; font-size: 14px;
            text-align: center; display: none; /* Hidden by default */
        }
        
        /* JS Error Text below input */
.field-error-text {
    color: #dc2626; 
    font-size: 12px; 
    margin-top: 5px; /* Positive value pushes it down */
    margin-bottom: 10px; 
    display: none;
}

        /* Submit Button */
        .login-submit input[type="submit"] {
            width: 100%; background-color: #1d4ed8; color: white; font-weight: 600;
            padding: 14px; border-radius: 6px; border: none; font-size: 16px; cursor: pointer;
            margin-top: 10px;
        }
        .login-submit input[type="submit"]:hover { background-color: #1e40af; }

        .forgot-password-link { font-size: 14px; color: #6b7280; text-decoration: none; font-weight: 500; }
        .signup-area { text-align: center; margin-top: 30px; font-size: 14px; color: #6b7280; }
        .login-remember { display: none; } 

        /* --- RIGHT SIDE --- */
        .login-right {
            width: 50%; background: linear-gradient(135deg, #7c9bf7 0%, #8ca6f8 50%, #9cb1f9 100%);
            display: flex; flex-direction: column; justify-content: center; align-items: center;
            padding: 60px; color: white; text-align: center;
        }
        .visual-content { max-width: 500px; }
        .illustration-placeholder {
            background: rgba(255, 255, 255, 0.25); backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 12px;
            width: 100%; height: 300px; margin-bottom: 40px;
            display: flex; align-items: center; justify-content: center;
        }
        .login-right h2 { font-size: 36px; margin-bottom: 15px; font-weight: 700; }
        .login-right p { font-size: 18px; line-height: 1.6; opacity: 0.9; }

        @media (max-width: 900px) {
            .login-split-screen { flex-direction: column; }
            .login-left, .login-right { width: 100%; }
            .brand-logo { position: static; margin-bottom: 30px; }
        }


.forgot-pwd-wrapper {
    text-align: right;  /* Keeps it aligned to the right as you preferred */
    margin-top: 0px;    /* Removes the gap to move it UP closer to the text above */
    margin-bottom: 20px;
}





/* Password Requirements Styling */
.req-item {
    margin-bottom: 2px;
    transition: color 0.3s ease;
}

/* Default State (Gray or Red if you prefer) */
.req-item {
    color: #9ca3af; /* Gray */
}

/* Valid State (Green) */
.req-item.valid {
    color: #10b981; /* Green */
    font-weight: 600;
}

/* Optional: Change the bullet point/icon */
.req-item.valid .icon {
    content: "✓"; /* You can also replace the text via JS if needed */
}


#password-requirements-list {
    /* Pulls the list 10px to the left */
    margin-left: 20px !important; 
    
    /* Optional: Ensure the bullets stay inside the container if it gets too close to the edge */
    padding-left: 20px; 
}



/*LOGIN PAGE TERMINA AQUI */









/* ==========================================================================
   Privacy Policy Page Styles
   ========================================================================== */

/* Main background */
.privacy-policy-main {
    background-color: #f9fafb; /* Light gray background to make the card pop */
    padding: 4rem 1rem;
}

/* Document card container */
.privacy-container {
    max-width: 800px; /* Limits line length for optimal reading */
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 3rem 4rem;
}

/* Header */
.privacy-header {
    margin-bottom: 2.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 1.5rem;
}

.privacy-title {
    font-size: 2.25rem;
    color: #111827;
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

/* Typography for content */
.privacy-content {
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.75;
}

/* Individual sections */
.privacy-section {
    margin-bottom: 2.5rem;
}

.privacy-section h2 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 600;
}

.privacy-section p {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Footer / Last Updated */
.privacy-footer {
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.last-updated {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

.last-updated svg {
    flex-shrink: 0;
}

/* Responsive adjustments for mobile devices */
@media (max-width: 768px) {
    .privacy-policy-main {
        padding: 2rem 1rem;
    }

    .privacy-container {
        padding: 2rem 1.5rem;
    }
    
    .privacy-title {
        font-size: 1.75rem;
    }
}


/* Introduction Text */
.privacy-intro {
    font-size: 1.15rem; /* Slightly larger text for the intro */
    color: #374151;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px dashed #e5e7eb; /* Adds a nice separator line before the list */
    line-height: 1.8;
}




/* Headings inside sections (used for 2.1, 2.2, etc.) */
.privacy-section h3 {
    font-size: 1.15rem;
    color: #374151;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* Lists styling */
.privacy-section ul,
.legal-info-list {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: #4b5563;
}

.privacy-section ul li,
.legal-info-list li {
    margin-bottom: 0.5rem;
}

.legal-info-list {
    list-style: none; /* Removes bullet points for the top company info block */
    padding-left: 0;
}






/* ==========================================================================
   Cookie Banner & Modal Styles
   ========================================================================== */

/* Main Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-background-secondary);
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    z-index: 9999;
    padding: 1.5rem;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cookie-banner-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text-primary);
}

.cookie-banner-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Identical buttons to comply with the law */
.cookie-btn {
    padding: 0.75rem 1.5rem;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid var(--color-accent-teal);
    background-color: var(--color-accent-teal);
    color: #ffffff;
    flex: 1;
    text-align: center;
    min-width: 200px;
}

.cookie-btn:hover {
    filter: brightness(1.1);
}

/* Secondary outline button style for the config button */
.cookie-btn-outline {
    background-color: transparent;
    color: var(--color-text-primary);
    border-color: var(--color-border);
}

.cookie-btn-outline:hover {
    border-color: var(--color-accent-teal);
    color: var(--color-accent-teal);
}

/* Configuration Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 1rem;
}

.cookie-modal-content {
    background-color: var(--color-background-secondary);
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-glow);
}

.cookie-options {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-option {
    background-color: var(--color-background-primary);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.cookie-option label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-headings);
    font-size: 1.05rem;
    cursor: pointer;
}

.cookie-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent-teal);
}

.cookie-option p {
    margin: 0.5rem 0 0 0;
    font-size: 0.85rem;
}

.cookie-modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Floating re-open button */
.floating-cookie-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--color-background-secondary);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    z-index: 9998;
    transition: all var(--transition-fast);
}

.floating-cookie-btn:hover {
    background-color: var(--color-background-tertiary);
    color: var(--color-accent-teal);
}

@media (min-width: 768px) {
    .cookie-banner-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .cookie-banner-buttons {
        flex: 0 0 auto;
        flex-direction: column;
    }
}


@media (max-width: 767px) {
    .cookie-modal-buttons {
        flex-direction: column; /* Stacks the buttons vertically */
        gap: 0.75rem; /* Slightly reduces the space between them for mobile */
    }

    .cookie-modal-buttons .cookie-btn {
        width: 100%; /* Ensures both buttons take up the full width of the modal */
    }
}



/* ==========================================================================
   AQUI TERMINA Cookie Banner & Modal Styles
   ========================================================================== */




/* ==========================================================================
   Cookie Data Tables (FIXED)
   page-politica-de-cookies.php
   ========================================================================== */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 2rem;
    background: var(--color-background-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for mobile */
}

.cookie-table {
    width: 100%;
    min-width: 1000px; /* Forces the table to be wide enough so it never squishes */
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.cookie-table th,
.cookie-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top; /* Aligns all text cleanly to the top */
    line-height: 1.5;
}

/* Prevents text from wrapping on short columns (Nombre, Tipo, Dominio, etc.) */
.cookie-table th:not(:last-child),
.cookie-table td:not(:last-child) {
    white-space: nowrap; 
}

/* Allows the 'Descripción' column to wrap text normally and gives it plenty of room */
.cookie-table th:last-child,
.cookie-table td:last-child {
    white-space: normal;
    min-width: 350px; 
}

.cookie-table tr:last-child td {
    border-bottom: none;
}

.cookie-table tbody tr:hover {
    background-color: var(--color-background-tertiary);
}


/* ==========================================================================
   AQUI TERMINACookie Data Tables (FIXED)
   page-politica-de-cookies.php
   ========================================================================== */
   
   
   
   
/* ==========================================================================
   Contact Form Checkbox
   page-contacto.php
   ========================================================================== */
.checkbox-group {
    margin-bottom: 2rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    font-weight: 400; /* Evita que el label se ponga en negrita */
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem; /* Alinea la casilla con la primera línea de texto */
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent-teal);
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-label a {
    text-decoration: underline;
}

/* Fix para el mensaje de error de JS que inyectamos */
.checkbox-group .error-message {
    margin-top: 0.5rem;
    margin-left: 1.8rem; /* Lo alinea con el texto, no debajo de la casilla */
}



/* ==========================================================================
   AQUI ACABA Contact Form Checkbox
   page-contacto.php
   ========================================================================== */