/* General Styles */
:root {
    --dark-bg: #121212;
    --text-white: #f0f0f0;
    --text-gray: #b0b0b0;
    --button-bg: #e0e0e0;
    --button-text: #1a1a1a;
    --border-radius-lg: 1.5rem; /* Generous border-radius */
    --glow-shadow: 0 0 10px rgba(255, 255, 255, 0.1), 0 0 20px rgba(255, 255, 255, 0.05);
    --subtle-glow: 0 0 5px rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-white);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    position: relative; /* For radial gradient and overlay */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -2; /* Below the radial gradient and other content */
}

/* Subtle radial gradient background */
body::before {
    content: '';
    position: fixed; /* Changed to fixed */
    top: 0;
    left: 0;
    width: 100vw; /* Changed to 100vw */
    height: 100vh; /* Changed to 100vh */
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: -1;
    transition: background 0.3s ease; /* Smooth transition for the overlay */
}

/* Overlay when agenda card is visible */
body.overlay-active::before {
    background: rgba(0, 0, 0, 0.7); /* Darker overlay */
    pointer-events: auto; /* Allow clicking on overlay to close card */
    z-index: 999; /* Below modals */
}

/* Main Container */
.main-container {
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between sections */
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    animation: fadeIn 0.8s ease-out;
}

/* Profile Section */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-top: 20px; /* Adjusted after removing fixed header icons */
}

.profile-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    /* border: 2px solid rgba(255, 255, 255, 0.1); */ /* Removed border */
    box-shadow: var(--subtle-glow);
    animation: fadeInScale 0.6s ease-out;
}

.profile-section h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
    animation: fadeInSlideUp 0.7s ease-out 0.1s backwards;
}

.profile-section .description {
    font-size: 1rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.5;
    animation: fadeInSlideUp 0.7s ease-out 0.2s backwards;
}

.icon-text {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0 3px;
}

.icon-text i {
    color: var(--text-gray);
    font-size: 0.9em;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    animation: fadeInSlideUp 0.7s ease-out 0.3s backwards;
}

.social-icon {
    color: var(--text-white);
    font-size: 1.8rem;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    padding: 5px;
    border-radius: 50%;
}

.social-icon:hover {
    transform: scale(1.1);
    opacity: 0.8;
    box-shadow: var(--subtle-glow);
}

/* Buttons General Style */
.button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: var(--subtle-glow);
    text-align: center;
}

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

/* CTA Buttons */
.cta-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    align-items: center; /* Centra los elementos hijos horizontalmente */
}

.cta-button {
    background-color: var(--button-bg);
    color: var(--button-text);
    justify-content: center; /* Centered content for mobile */
    animation: fadeInSlideUp 0.7s ease-out 0.4s backwards;
}

.cta-button span {
    flex-grow: 1;
    text-align: center;
}

.cta-button i {
    margin-left: 10px;
    color: var(--button-text);
    font-size: 1rem;
}

/* Section Title */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    text-align: center;
    margin: 30px 0 10px;
    animation: fadeInSlideUp 0.7s ease-out 0.5s backwards;
}

/* Instagram Reels Widget */
.instagram-reels-widget {
    display: flex;
    flex-direction: column;
    width: 100%;
    color: inherit;
    overflow: hidden;
    /* Removed background, border-radius, box-shadow, transition, animation as they are handled by parent .instagram-button-trigger */
    /* Removed margin-top as spacing is handled by parent */
}

.instagram-reels-widget:hover {
    /* Removed hover effect as it's handled by parent .instagram-button-trigger */
}

.widget-header {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 10px;
    background-color: rgba(0, 0, 0, 0.6); /* Adjusted to match darker card background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.instagram-profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.instagram-username {
    font-weight: 600;
    color: var(--text-white);
    flex-grow: 1;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3); /* Added subtle glow effect */
}

/* --- Contenedor principal --- */
.posts-visual-container {
  position: relative;
  width: 100%;
  height: clamp(360px, 60vh, 560px); /* alto responsivo */
  margin-top: 10px;
  overflow: hidden; /* evita scroll por efectos/hover */
}

/* --- Tarjetas (enlaces) --- */
.side-post,
.center-post {
  position: absolute;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, filter 0.3s ease, z-index 0s step-end;
  will-change: transform, filter;
}

/* Aseguramos 9:16 en todos los posts con height relativo al contenedor */
.side-post,
.center-post {
  aspect-ratio: 9 / 16;
}

/* --- Post central --- */
/* --- Post central (por defecto: menos notorio) --- */
.center-post {
  height: 90%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  filter: brightness(0.6); /* más apagado de inicio */
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

/* --- Hover: protagonista --- */
.center-post:hover {
  filter: brightness(1); /* brillo completo */
  transform: translate(-50%, -50%) scale(1.05); /* leve zoom */
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.35); /* más glow */
  z-index: 12; /* por si se cruza con laterales en hover */
}
/* --- Posts laterales (por defecto: apagados) --- */
.side-post {
  height: 85%;
  aspect-ratio: 9 / 16;
  position: absolute;
  z-index: 5;
  filter: brightness(0.6);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.left-post {
  left: 2%;
  top: 50%;
  transform: translateY(-50%) translateX(-6%) scale(0.95);
}

.right-post {
  right: 2%;
  top: 50%;
  transform: translateY(-50%) translateX(6%) scale(0.95);
}

/* Hover de laterales */
.side-post:hover {
  filter: brightness(1);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.35);
  z-index: 11;
}

/* --- Contenido interno --- */
.post-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

.post-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* sin bandas negras */
  display: block;
}

/* --- Etiqueta / gradiente --- */
.post-label {
  position: absolute;
  inset: auto 0 0 0;        /* bottom:0; left:0; right:0 */
  padding: 18px 12px 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  user-select: none;
  z-index: 1;
}

/* --- Accesibilidad: foco visible en enlaces --- */
.side-post:focus-visible,
.center-post:focus-visible {
  outline: 3px solid rgba(255,255,255,0.8);
  outline-offset: 2px;
}

/* --- MOBILE: mantener layout PC pero más chico --- */
@media (max-width: 768px) {
  .posts-visual-container {
    height: 40vh; /* más compacto en celular */
  }

  .side-post,
.center-post {
    max-width: 150px;   /* limite de ancho */
    height: auto;
    aspect-ratio: 9 / 16;
  }

  .center-post {
    height: 100%; /* ocupa el alto definido del contenedor */
    transform: translate(-50%, -50%) scale(1);
  }

  .left-post {
    left: 0;
    transform: translateY(-50%) translateX(-15%) scale(0.9);
  }

  .right-post {
    right: 0;
    transform: translateY(-50%) translateX(15%) scale(0.9);
  }

  .post-label {
    font-size: 12px;
    padding: 12px 8px 8px;
  }
}


.widget-footer {
    padding: 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-gray);
    background-color: rgba(0, 0, 0, 0.6);
    border-top: 0px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.instagram-follow-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
    justify-content: space-between;
    padding: 10px 15px;
    box-sizing: border-box;
}

.instagram-follow-link:hover {
    /* No background color change on hover */
}

.instagram-follow-link span {
    font-weight: 600;
}

.widget-footer .instagram-follow-text {
    background-color: #0095f6; /* Instagram blue */
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.instagram-follow-link:hover .instagram-follow-text {
    background-color: #007bb5;
}

/* Additional Links */
.additional-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.link-button {
    background-color: var(--button-bg);
    color: var(--button-text);
    justify-content: flex-start;
    padding-left: 20px;
    animation: fadeInSlideUp 0.7s ease-out 0.7s backwards;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: var(--subtle-glow);
    text-align: center;
}

.link-button:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: var(--glow-shadow);
}

.instagram-button-trigger {
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.8); /* Darker background for the open widget */
    border-radius: var(--border-radius-lg);
    box-shadow: var(--subtle-glow);
    overflow: hidden;
    /* Removed animation and hover effects as requested */
    /* Removed margin-top: 20px as requested */
}

.instagram-button-header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--button-text);
    background-color: var(--button-bg);
    border-top-left-radius: var(--border-radius-lg); /* Apply top border-radius */
    border-top-right-radius: var(--border-radius-lg); /* Apply top border-radius */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Separator from reels content */
    justify-content: flex-start;
    /* Removed transition and hover effects as requested */
}

.link-button i:first-child,
.instagram-button-header i:first-child {
    margin-right: 15px;
    font-size: 1.3rem;
}

.link-button span,
.instagram-button-header span {
    flex-grow: 1;
    text-align: left;
}

.link-button i:last-child,
.instagram-button-header i:last-child {
    margin-left: auto;
    font-size: 1rem;
}

/* Adjustments for nested instagram-reels-widget */
/* Adjustments for nested instagram-reels-widget */
.instagram-button-trigger .instagram-reels-widget {
    background-color: transparent; /* No background for the nested widget itself */
    border-bottom-left-radius: var(--border-radius-lg); /* Apply bottom border-radius */
    border-bottom-right-radius: var(--border-radius-lg); /* Apply bottom border-radius */
    box-shadow: none; /* No shadow for the nested widget itself */
    margin-top: 0; /* No extra margin */
    padding-top: 0; /* Set padding-top to 0 as requested */
}

.instagram-button-trigger .instagram-reels-widget .widget-header {
    display: none; /* Hide the nested widget's header as the main button acts as one */
}

.instagram-button-trigger .instagram-reels-widget .widget-footer {
    border-top: none; /* Remove top border if header is hidden */
    padding-bottom: 15px; /* Add some padding at the bottom */
}

.widget-footer .footer-profile-pic {
    width: 70px; /* Smaller size for footer icon */
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 5px; /* Space between icon and text */
}

.widget-footer .instagram-follow-text {
    background-color: #0095f6; /* Instagram blue */
    color: white;
    display: inline-flex; /* Use flexbox for centering content */
    align-items: center;
    justify-content: center;
    min-width: 80px; /* Fixed width for the button */
    height: 35px; /* Fixed height for the button */
    padding: 0 15px; /* Adjust padding for fixed size */
    border-radius: 12px; /* More rounded */
    font-weight: 700; /* Bolder font */
    font-size: 1.05rem; /* Slightly larger font */
    box-shadow: 0 3px 10px rgba(0, 149, 246, 0.5); /* More prominent blue shadow */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Subtle white border */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.4); /* Subtle text glow */
    transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.widget-footer .instagram-follow-text:hover {
    background-color: #007bb5; /* Darker blue on hover */
    box-shadow: 0 5px 15px rgba(0, 149, 246, 0.8); /* Even more prominent shadow on hover */
    border-color: rgba(255, 255, 255, 0.6); /* Lighter border on hover */
}

.instagram-button-trigger .instagram-reels-widget .widget-header {
    display: none; /* Hide the nested widget's header as the main button acts as one */
}

.instagram-button-trigger .instagram-reels-widget .widget-footer {
    border-top: none; /* Remove top border if header is hidden */
    padding-bottom: 15px; /* Add some padding at the bottom */
}

/* YouTube Embed */
.youtube-embed {
    width: 100%;
    margin-top: 20px;
    animation: fadeInSlideUp 0.7s ease-out 0.8s backwards;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--subtle-glow);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Final CTA Banner */
.footer-banner-image {
    width: 100%;
    max-width: 100%; /* Ensure it's not overflow */
    height: auto;
    border-radius: var(--border-radius-lg);
    padding-top: 80px;
    display: block; /* Remove extra space below image */
    animation: fadeInSlideUp 0.7s ease-out 0.9s backwards;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-banner-image:hover {
    transform: translateY(-3px) scale(1.01);
}

/* Footer */
.site-footer {
    margin-top: 50px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-gray);
    animation: fadeInSlideUp 0.7s ease-out 1s backwards;
}

.site-footer p {
    margin: 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Agenda Card Styles */
.agenda-card {
    background-color: white;
    border-radius: var(--border-radius-lg); /* Using existing variable for rounded corners */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3); /* More prominent shadow */
    width: 100%;
    max-width: 400px; /* Adjust as needed */
    overflow: hidden;
    color: var(--button-text); /* Dark text for white card */
    display: none; /* Hidden by default */
    position: fixed; /* To overlay content */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000; /* Ensure it's on top */
    animation: fadeIn 0.3s ease-out;
    transition: all 0.3s ease;
    border: 1px solid #eee; /* Subtle border to define its edges */
}

.agenda-card.visible {
    display: block;
}

.card-image-container {
    width: 100%;
    height: 200px; /* Fixed height for the image */
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px; /* Increased height for a smoother fade */
    background: linear-gradient(to top, white 0%, rgba(255, 255, 255, 0) 100%); /* Explicit color stops */
    pointer-events: none; /* Ensure it's not interfere with clicks */
}

.close-card-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1001; /* Ensure it's above the image and fade */
    transition: background-color 0.2s ease;
}

.close-card-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none; /* Ensure no border */
    outline: none; /* Ensure no outline */
    box-shadow: none; /* Ensure no shadow */
    display: block; /* Remove extra space below image */
}

.card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.agenda-card .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    color: #000;
    line-height: 1.2;
}

.agenda-card .card-description {
    font-size: 0.85rem;
    line-height: 1.3;
    color: #000;
    margin: 0 0 10px 0;
}

.read-more-text {
    font-size: 0.9rem;
    color: #000;
    margin: 0;
}

.read-more-link {
    color: #000; /* Black for links */
    text-decoration: none;
    font-weight: 600;
}

.read-more-link:hover {
    color: #000; /* Even darker black on hover */
    text-decoration: none; /* No underline on hover */
}

.card-separator {
    border: none;
    border-top: 1px solid #eee;
    margin: 15px 0;
}

.card-action-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.action-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.action-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #000;
    margin: 0 0 5px 0; /* Added bottom margin */
}

.action-time {
    font-size: 0.85rem;
    color: #000;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-time i {
    font-size: 1rem;
    color: #000;
}

.action-button {
    background-color: #4CAF50; /* A more prominent green */
    color: white;
    border: none;
    border-radius: 50px; /* Pill shape */
    padding: 15px 35px; /* Increased padding for a larger button */
    font-size: 1.2rem; /* Larger font size */
    font-weight: 800; /* Even bolder font */
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.5); /* More prominent green shadow */
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.action-button:hover {
    background-color: #45a049; /* Darker green on hover */
    box-shadow: 0 12px 25px rgba(76, 175, 80, 0.8); /* Even more prominent shadow on hover */
    transform: translateY(-3px); /* Slight lift on hover */
}

/* Cookie Bar Styles */
.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.95); /* Darker, more subtle background */
    color: var(--text-white);
    padding: 18px 25px;
    display: flex;
    justify-content: center; /* Center content */
    align-items: center;
    flex-wrap: wrap;
    gap: 20px; /* Space between text and button */
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.5s ease-out;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Subtle top border */
}

.cookie-bar.visible {
    transform: translateY(0);
}

.cookie-bar p {
    margin: 0;
    font-size: 1rem; /* Slightly larger font */
    line-height: 1.6;
    text-align: center; /* Center text */
    max-width: 700px; /* Limit text width */
}

.cookie-bar a {
    color: var(--text-white); /* Use white for link, it will be underlined */
    text-decoration: underline;
    font-weight: 600;
}

.cookie-bar a:hover {
    color: #4d41e9; /* Milytics blue on hover */
}

.accept-cookies-btn {
    background-color: #4d41e9; /* Milytics blue */
    color: white;
    border: none;
    border-radius: 10px; /* Slightly more rounded */
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 700; /* Bolder font */
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(77, 65, 233, 0.4); /* Blue shadow */
}

.accept-cookies-btn:hover {
    background-color: #3a31c2; /* Darker blue on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(77, 65, 233, 0.6);
}

/* Responsive adjustments for cookie bar */
@media (max-width: 768px) {
    .cookie-bar {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }

    .cookie-bar p {
        padding-right: 0;
        margin-bottom: 0;
        font-size: 0.9rem;
    }

    .accept-cookies-btn {
        width: 100%;
        max-width: 250px; /* Limit button width on smaller screens */
    }
}

/* Floating Contact Popup Styles */
.floating-contact-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: var(--border-radius-lg);
    padding: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.1);
    z-index: 1000;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 280px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.floating-contact-popup.hidden {
    opacity: 0;
    transform: translateY(100px);
    pointer-events: none;
}

.popup-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popup-text {
    text-align: center;
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}

.popup-buttons {
    display: flex;
    gap: 10px;
}

.popup-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    color: var(--text-white);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.15s ease;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.popup-btn i {
    font-size: 1.2rem;
}

/* Phone button styles */
.phone-btn {
    background: rgba(77, 65, 233, 0.8);
    border-color: rgba(77, 65, 233, 0.6);
}

.phone-btn:hover {
    background: rgba(77, 65, 233, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 65, 233, 0.4);
    border-color: rgba(77, 65, 233, 0.8);
}

/* WhatsApp button styles */
.whatsapp-btn {
    background: rgba(37, 211, 102, 0.8);
    border-color: rgba(37, 211, 102, 0.6);
}

.whatsapp-btn:hover {
    background: rgba(37, 211, 102, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    border-color: rgba(37, 211, 102, 0.8);
}

.popup-close-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.popup-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Mobile floating icon styles */
.mobile-contact-icon {
    display: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4d41e9 0%, #6c63ff 100%);
    box-shadow: 0 4px 20px rgba(77, 65, 233, 0.4), 0 0 15px rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.mobile-contact-icon i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.4rem;
    color: var(--text-white);
    transition: all 0.12s ease;
}

.mobile-contact-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(77, 65, 233, 0.5), 0 0 20px rgba(255, 255, 255, 0.15);
}

.mobile-contact-icon:active {
    transform: scale(0.95);
}

/* Mobile responsiveness for popup */
@media (max-width: 768px) {
    .floating-contact-popup {
        bottom: 20px;
        right: 20px;
        left: auto;
        max-width: 60px;
        padding: 0;
        background: transparent;
        box-shadow: none;
        border: none;
        backdrop-filter: none;
        transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .floating-contact-popup.expanded {
        bottom: 15px;
        right: 15px;
        left: 15px;
        max-width: none;
        padding: 15px;
        background: rgba(0, 0, 0, 0.85);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(15px);
    }
    
    .mobile-contact-icon {
        display: block;
    }
    
    .floating-contact-popup.expanded .mobile-contact-icon {
        display: none;
    }
    
    .popup-content {
        display: none;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.15s ease;
    }
    
    .floating-contact-popup.expanded .popup-content {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
    
    .popup-text {
        font-size: 0.9rem;
    }
    
    .popup-btn {
        padding: 12px 8px;
        font-size: 0.8rem;
    }
    
    .popup-btn i {
        font-size: 1.1rem;
    }
}

/* Desktop behavior - show full popup always */
@media (min-width: 769px) {
    .mobile-contact-icon {
        display: none;
    }
    
    .popup-content {
        display: flex;
    }
}

/* Modal del Formulario de Diagnóstico */
.form-modal-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    color: #333; /* Texto negro */
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000; /* Mismo z-index que agenda-card */
    border: 1px solid #eee;
}

.form-modal-card.visible {
    display: block;
}

.form-modal-card .card-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.form-modal-card .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.form-modal-card .close-form-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.form-modal-card .close-form-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.form-modal-card .card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: white;
    color: #333; /* Texto negro */
}

.form-modal-card .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    color: #333; /* Título negro */
    line-height: 1.2;
}

.form-modal-card .card-description {
    font-size: 0.85rem;
    line-height: 1.3;
    color: #666; /* Descripción gris oscuro */
    margin: 0 0 10px 0;
}

/* Sistema de Páginas del Formulario */
.form-page {
    display: none;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-page.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.form-page.sliding-out-left {
    transform: translateX(-100%);
    opacity: 0;
}

.form-page.sliding-in-right {
    transform: translateX(0);
    opacity: 1;
}

.form-page.sliding-out-right {
    transform: translateX(100%);
    opacity: 0;
}

.form-page.sliding-in-left {
    transform: translateX(0);
    opacity: 1;
}

/* Indicador de Progreso */
.form-progress {
    text-align: center;
    margin-bottom: 15px;
}

.progress-indicator {
    background: linear-gradient(135deg, #4d41e9 0%, #7c3aed 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

/* Sección del Formulario */
.form-section {
    margin-bottom: 15px;
}

.diagnostico-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-modal-card .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.form-modal-card .form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333; /* Labels negros */
    margin-bottom: 2px;
}

.form-modal-card .form-group input,
.form-modal-card .form-group textarea {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: #333; /* Texto negro */
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    line-height: 1.3;
}

.form-modal-card .form-group input:focus,
.form-modal-card .form-group textarea:focus {
    outline: none;
    border-color: #4d41e9;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(77, 65, 233, 0.15);
}

.form-modal-card .form-group input::placeholder,
.form-modal-card .form-group textarea::placeholder {
    color: #999; /* Placeholders grises */
    font-size: 0.85rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
    line-height: 1.4;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.form-modal-card .radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    margin-bottom: 8px;
}

.form-modal-card .radio-option:hover {
    background: #e9ecef;
    border-color: #4d41e9;
}

.form-modal-card .radio-option:has(input[type="radio"]:checked) {
    background: rgba(77, 65, 233, 0.1);
    border-color: #4d41e9;
    color: #4d41e9;
    font-weight: 600;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.radio-custom:hover {
    border-color: #4d41e9;
    box-shadow: 0 2px 8px rgba(77, 65, 233, 0.2);
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #4d41e9;
    background: #4d41e9;
    box-shadow: 0 2px 8px rgba(77, 65, 233, 0.3);
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.form-action-button {
    background: linear-gradient(135deg, #4d41e9 0%, #7c3aed 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
}

.form-action-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(77, 65, 233, 0.3);
}

.form-action-button:active {
    transform: translateY(0);
}

/* Navegación del Formulario */
.form-navigation {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.nav-button {
    flex: 1;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-modal-card .back-button {
    background: #f8f9fa;
    color: #333; /* Texto negro */
    border: 1px solid #ddd;
}

.form-modal-card .back-button:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.submit-button {
    background: linear-gradient(135deg, #4d41e9 0%, #7c3aed 100%);
    color: white;
}

.submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(77, 65, 233, 0.3);
}

.submit-button:active,
.back-button:active {
    transform: translateY(0);
}

.continue-button {
    background: linear-gradient(135deg, #4d41e9 0%, #7c3aed 100%);
    color: white;
    width: 100%;
}

.continue-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(77, 65, 233, 0.3);
}

.continue-button:active {
    transform: translateY(0);
}

.form-modal-card .form-loading {
    text-align: center;
    padding: 40px 20px;
}

.form-modal-card .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #4d41e9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-modal-card .form-loading p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.form-modal-card .form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-modal-card .success-icon {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 20px;
}

.form-modal-card .form-success h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333; /* Título negro */
    margin: 0 0 15px 0;
}

.form-modal-card .form-success p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 25px 0;
}

.form-modal-card .close-success-btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #333; /* Texto negro */
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-modal-card .close-success-btn:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

/* Mensajes de error personalizados */
.error-message {
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 10px 0;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
    border-left: 4px solid rgba(255, 255, 255, 0.3);
}

.error-message.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.error-message i {
    margin-right: 8px;
    font-size: 0.9rem;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #ff4757;
    background-color: rgba(255, 71, 87, 0.05);
    box-shadow: 0 0 0 2px rgba(255, 71, 87, 0.15);
}

.form-group.error label {
    color: #ff4757;
}

/* Animación de shake para campos con error */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

.form-group.error {
    animation: shake 0.5s ease-in-out;
}

/* Responsive para el formulario */
@media (max-width: 768px) {
    .form-modal-card {
        margin: 10px;
        max-height: 95vh;
        max-width: 350px;
    }
    
    .error-message {
        font-size: 0.8rem;
        padding: 10px 14px;
    }
    
    .form-modal-card .card-content {
        padding: 15px;
    }
    
    .form-modal-card .card-title {
        font-size: 1.2rem;
    }
    
    .form-modal-card .card-description {
        font-size: 0.8rem;
    }
    
    .radio-group {
        gap: 15px;
    }
    
    .nav-button {
        font-size: 0.8rem;
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .form-modal-card .card-content {
        padding: 12px;
    }
    
    .form-modal-card {
        max-width: 320px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
}