.bg { position: relative; background: var(--color-light); border-radius: var(--radius-full); margin-top: 2em; padding: 1.2rem; } .flow > * + * { margin-top: 1em; } .two_columns { display: flex; flex-wrap: wrap; justify-content: center; gap: 2em; & > *:not(p) { flex: 1 0 400px; max-width: 100%; display: grid; place-content: center; } h2{margin: 0;} } .two_columns_left { flex-direction: row-reverse; } .flex { display: flex; gap: 1em; flex-wrap: wrap; align-items: start; padding: 0; & > * { flex: 1 0 180px; max-width: 100%; margin: 0; } li { display: grid; gap: 12px; place-items: center; list-style: none; background: var(--gradient-testimonial); padding: 1rem 1.2rem; border-radius: var(--radius-card); font-size: 0.9rem; text-align: center; strong { font-size: 1.5rem; } } } .tags { display: inline-block; background: var(--gradient-urgencia); padding: 0.5rem 1.6rem; color: var(--color-blanco); font-size: 18px; font-family: var(--font-body); border-radius: var(--radius-card); max-width: -webkit-max-content; max-width: -moz-max-content; max-width: max-content; margin-bottom: 1em; } .blocks { display: grid; gap: 1.6rem; } .padding_block { padding: 3rem 0; } /* SOLUCIÓN PARA FIGCAPTION - Reemplaza la regla figure existente */ figure { position: relative; border-radius: var(--radius-full); overflow: hidden; display: grid; grid-template-rows: 1fr auto; /* Imagen toma espacio, caption se ajusta */ & .small{ width: min(100%, 584px); max-width: 100%; } & .large{ width: min(100%, 1200px); max-width: 100%; } } /* Contenedor para imagen/video */ figure > :is(img, video, .video-container) { grid-row: 1; width: 100%; height: auto; border-radius: var(--radius-full); } /* Figcaption mejorado */ figure figcaption { grid-row: 2; padding: 0.88rem 1.6rem; font-size: 0.9rem; box-sizing: border-box; width: 100%; /* Se ajusta al ancho del figure */ border-bottom-left-radius: var(--radius-full); border-bottom-right-radius: var(--radius-full); /* Asegurar que el texto no se desborde */ word-wrap: break-word; -webkit-hyphens: auto; -ms-hyphens: auto; hyphens: auto; } figure figcaption h3 { color: var(--color-texto-suave); margin: 0 0 0.5rem 0; } figure figcaption p { font-size: 0.9rem; margin: 0; line-height: 1.6; } figure.overlay figcaption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)); color: white; padding: 2rem 1.6rem 0.88rem 1.6rem; /* Asegurar que no se desborde */ max-width: 100%; box-sizing: border-box; } figure.overlay figcaption h3, figure.overlay figcaption p { color: white; } /* RESPONSIVE - Para móviles */ @media (max-width: 768px) { figure { width: 100%; max-width: 100%; } figure figcaption { padding: 0.75rem 1rem; font-size: 0.85rem; } figure figcaption h3 { font-size: 0.95rem; } figure figcaption p { font-size: 0.8rem; } } .center { display: grid; place-items: center; text-align: center; .boton { margin-top: 1.2em; } } .breadcrumbs { font-size: 0.9rem; color: var(--color-texto-suave); margin-bottom: 1rem; a{font-size: 0.9rem;} } /* CARDS DE SERVICIO - Optimizadas para conversión */ .service-card { background: rgba(255, 255, 255, 0.95); border: 1px solid rgba(232, 180, 200, 0.2); border-radius: var(--radius-card); box-shadow: var(--shadow-card); transition: var(--transition-premium); overflow: hidden; padding: 1rem; h2{ font-size: 1.8em; margin: 0; margin-bottom: 0.5rem; color: var(--color-main); } p{ font-size: 1rem; line-height: 1.6; color: var(--color-texto); margin-bottom: 1rem; } } .service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-floating); border-color: var(--color-action); } /* Galería adaptada con tus clases existentes */ .casos-gallery { display: grid; gap: 1rem; padding: 2rem 0; /* Responsive sin media queries usando clamp y grid */ grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); grid-auto-rows: 400px; } /* Mobile: 1 columna, Tablet: 2 cols, Desktop: 3+ cols */ @supports (grid-template-columns: subgrid) { .casos-gallery { grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 45vw, 400px), 1fr)); } } .caso-item { position: relative; background-size: cover; background-position: center; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); transition: var(--transition-smooth); cursor: pointer; } .caso-item:hover { transform: translateY(-8px); box-shadow: var(--shadow-floating, 0 20px 40px rgba(0,0,0,0.15)); } /* Overlay con información SEO */ .caso-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,0.8)); display: grid; place-content: end; padding: 1.5rem; color: white; opacity: 0; transition: var(--transition-smooth); } .caso-item:hover .caso-overlay, .caso-item:focus-within .caso-overlay { opacity: 1; } /* Mobile: siempre visible */ @media (max-width: 768px) { .caso-overlay { opacity: 1; background: linear-gradient(transparent 60%, rgba(0,0,0,0.9)); } } .caso-title { font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 700; margin: 0 0 0.5rem 0; color: white; } .caso-description { font-size: 0.9rem; margin: 0 0 1rem 0; line-height: 1.4; color: rgba(255,255,255,0.9); } /* CTA específico por caso */ .caso-cta { background: var(--color-action); color: white; padding: 0.5rem 1rem; border-radius: var(--radius-card); text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: var(--transition-smooth); text-align: center; display: inline-block; } .caso-cta:hover { background: color-mix(in srgb, var(--color-action) 90%, black); transform: scale(1.05); } /* Accesibilidad mejorada */ .caso-item:focus { outline: 2px solid var(--color-action); outline-offset: 2px; } /* Estados de carga progresiva */ .caso-item[data-loaded="false"] { background: var(--gradient-testimonial); animation: pulse 2s infinite; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } } /* FIX ESPECÍFICO PARA VIDEO CONTAINER */ .video-container { position: relative; width: 100%; aspect-ratio: 1/1; /* O el ratio que uses para videos */ } .video-container video { width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; } .intro { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); color: var(--color-main); font-weight: 500; position: relative; padding-left: 1.5rem; } .intro::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 4px; height: 60%; background: var(--gradient-cta); border-radius: 2px; } /* UTILIDADES DE CONVERSIÓN */ .texto-precio { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 800; color: var(--color-action); font-family: var(--font-heading); } .texto-urgencia { color: var(--color-urgencia); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; -webkit-animation: pulse 2s infinite; animation: pulse 2s infinite; } @-webkit-keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } } /* URGENCIA - Para crear FOMO */ .urgencia { background: var(--gradient-urgencia); color: var(--color-blanco); padding: 0.5rem 1.5rem; border-radius: var(--radius-full); font-weight: 700; font-size: 0.9rem; -webkit-animation: pulse 2s infinite; animation: pulse 2s infinite; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } } /* BADGES PREMIUM - Percepción de valor */ .badge-premium { background: var(--gradient-premium); color: var(--color-blanco); padding: 0.3rem 1rem; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; padding: 2rem; li{ list-style: none; &::before{ content: '💫'; margin-right: 0.5em; } } } /* EXCLUSIVIDAD - Para servicios premium */ .exclusivo { background: linear-gradient( 135deg, var(--color-exclusivo), var(--color-profesional) ); color: var(--color-blanco); padding: 0.4rem 1.2rem; border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 4px 15px rgba(139, 74, 102, 0.3); h2, p { color: var(--color-blanco); -webkit-text-fill-color: var(--color-blanco); } } /* PRECIO - Optimizado psicológicamente */ .precio-container { background: rgba(255, 255, 255, 0.9); border: 2px solid var(--color-action); border-radius: var(--radius); padding: 1.5rem; text-align: center; position: relative; li{list-style: none;} } .precio-antes { color: var(--color-texto-suave); text-decoration: line-through; font-size: 1rem; margin-bottom: 0.5rem; } .precio-ahora { color: var(--color-action); font-size: 2.5rem; font-weight: 700; font-family: var(--font-heading); } .precio-cuotas { color: var(--color-confianza); font-size: 0.9rem; font-weight: 500; margin-top: 0.5rem; } .header_home{ margin-top: 2em; border-radius: var(--radius-full); padding: 6rem 2rem; box-shadow: var(--shadow-card); background-image: url('../img/tratamientos-esteticos-con-stefany-camargo.avif'); background-size: cover; background-position: center; background-repeat: no-repeat; h1, p{ font-weight: 700; color: var(--color-light); background: none; -webkit-text-fill-color: var(--color-light); } .header_home_links{ width: min(100%, 480px); display: flex; gap: 1em; flex-wrap: wrap; justify-content: flex-end; align-self: flex-end; a{ padding: 1rem 2rem; color: var(--color-action); text-decoration: none; font-weight: 700; font-size: 18px; border-radius: var(--radius-button); background: var(--gradient-testimonial); transition: var(--transition-premium); &:hover{ background: var(--gradient-hero); } } } } .hero-section { background: var(--gradient-hero); position: relative; } .hero_services img{ max-width: max-content; } .hero_services_cta{ display: flex; flex-wrap: wrap; gap: 2em; margin-bottom: 2em; } :root { --primary: #2563eb; --color-secundary: #1e40af; --white: #ffffff; --shadow: 0 4px 20px rgba(37, 99, 235, 0.15); --shadow-hover: 0 8px 30px rgba(37, 99, 235, 0.25); --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } /* BOTONES FLOTANTES - Código optimizado */ .floating-nav { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1000; display: flex; flex-direction: column; gap: 1rem; } /* FAB Base - Mucho más simple */ .fab { width: 3.5rem; height: 3.5rem; border-radius: 50%; border: none; cursor: pointer; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--color-secundary)); box-shadow: var(--shadow); transition: var(--transition); text-decoration: none; color: var(--white); position: relative; } .fab:hover { transform: translateY(-2px) scale(1.05); box-shadow: var(--shadow-hover); } .fab svg { width: 1.5rem; height: 1.5rem; fill: currentColor; } /* FAB Servicios */ .fab--services { background: var(--gradient-cta); } .fab--services[aria-expanded="true"] { transform: rotate(45deg); } .fab--services[aria-expanded="true"] svg { transform: rotate(-45deg); } /* FAB Contacto */ .fab--contact { background: linear-gradient(135deg, #26dc35, #109c22); } /* Menú de servicios - Simplificado */ .services-menu { position: fixed; bottom: 6rem; right: 1.2rem; width: clamp(280px, 40vw, 320px); max-height: 70vh; overflow-y: auto; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); border-radius: 1rem; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); opacity: 0; visibility: hidden; transform: translateY(1rem) scale(0.95); transition: var(--transition); } .services-menu.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); } .service-item { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; text-decoration: none; color: #374151; font-weight: 500; border-bottom: 1px solid rgba(0, 0, 0, 0.05); transition: var(--transition); } .service-item:hover { background: rgba(37, 99, 235, 0.05); color: var(--primary); } .service-item:last-child { border-bottom: none; border-radius: 0 0 1rem 1rem; } .service-item:first-child { border-radius: 1rem 1rem 0 0; } .service-icon { font-size: 1.25rem; flex-shrink: 0; } .service-text { flex: 1; display: flex; flex-direction: column; gap: 0.125rem; } .service-price { font-size: 0.8rem; color: #6b7280; font-weight: 600; } /* Responsive - Usando clamp() en lugar de media queries */ .floating-nav { bottom: clamp(1rem, 4vw, 1.5rem); right: clamp(1rem, 4vw, 1.5rem); } .fab { width: clamp(3rem, 8vw, 3.5rem); height: clamp(3rem, 8vw, 3.5rem); } /* Scrollbar personalizada */ .services-menu::-webkit-scrollbar { width: 4px; } .services-menu::-webkit-scrollbar-track { background: transparent; } .services-menu::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; } /* SISTEMA DE 2 BOTONES - Ultra Optimizado para Conversión */ /* BASE UNIVERSAL - Tu estructura existente mejorada */ .boton { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; text-transform: uppercase; text-decoration: none; padding: 1em 1.6em; border-radius: 6em; font-weight: bold; text-align: center; max-width: max-content; /* Optimizaciones modernas */ font-family: var(--font-cta); font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1.1rem); transition: var(--transition-bounce); cursor: pointer; border: 2px solid var(--color-action); /* Estados focus mejorados */ outline: 2px solid transparent; outline-offset: 2px; } /* BOTÓN PRIMARIO - Para conversión (tu boton_2) */ .boton_2 { background: var(--gradient-cta); color: var(--color-blanco); border-color: var(--color-action); box-shadow: var(--shadow-cta); } /* BOTÓN SECUNDARIO - Para navegación (tu boton_1) */ .boton_1 { background: var(--color-blanco); color: var(--color-action); border-color: var(--color-action); } /* ESTADOS HOVER - Mantienes tu lógica pero optimizado */ .boton:hover { transform: translateY(-3px); box-shadow: 0 10px 20px color-mix(in srgb, var(--color-action) 25%, transparent); } .boton:active { transform: translateY(-1px); box-shadow: 0 5px 10px color-mix(in srgb, var(--color-action) 20%, transparent); } /* EFECTO ::AFTER - Tu concepto pero con nuevas variables */ .boton::after { content: ""; position: absolute; inset: 0; border-radius: inherit; transition: var(--transition-bounce); z-index: -1; opacity: 0; } .boton_1::after { background: var(--color-blanco); } .boton_2::after { background: var(--gradient-cta); } .boton:hover::after { opacity: 1; } /* ICONO SVG - Optimizado para tu estructura */ .boton svg { width: 18px; height: 18px; fill: currentColor; transition: var(--transition-smooth); } .boton:hover svg { transform: scale(1.1) rotate(5deg); } /* ESPECIALIZACIÓN PARA WHATSAPP */ .boton[id="lead_whatsapp"] { position: relative; overflow: hidden; } /* Efecto de brillo para WhatsApp */ .boton[id="lead_whatsapp"]::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); transition: left 0.6s; z-index: 1; } .boton[id="lead_whatsapp"]:hover::before { left: 100%; } /* TEXTO - Optimización del span */ .boton .text { position: relative; z-index: 2; font-weight: 600; letter-spacing: 0.5px; } /* RESPONSIVE - Mobile optimized */ @media (max-width: 600px) { .boton { min-height: 44px; /* Área táctil iOS */ padding: 1rem 1.8rem; font-size: 1rem; } .boton svg { width: 20px; height: 20px; } } /* ESTADOS DE ACCESIBILIDAD */ .boton:focus-visible { outline: 2px solid var(--color-action); outline-offset: 2px; } .boton:disabled { opacity: 0.5; pointer-events: none; transform: none !important; } /* GRUPO DE BOTONES - Para cuando aparezcan juntos */ .botones-grupo { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: center; } @media (max-width: 480px) { .botones-grupo { flex-direction: column; width: 100%; } .botones-grupo .boton { width: 100%; max-width: 280px; } } /* ESTADOS ESPECIALES PARA CONVERSIÓN */ .boton-urgencia { animation: pulse-gentle 3s infinite; } @keyframes pulse-gentle { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } } /* OPTIMIZACIÓN FINAL - Reducir repaint */ .boton { will-change: transform; backface-visibility: hidden; -webkit-backface-visibility: hidden; } .faq-item { transition: var(--transition-smooth); border-bottom: 1px solid rgba(232, 180, 200, 0.2); } .faq-item:last-child { border-bottom: none; } .faq-question { background: none; border: none; width: 100%; text-align: left; padding: 1.5rem 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-body); font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); font-weight: 600; color: var(--color-texto); transition: var(--transition-smooth); } .faq-question:hover { color: var(--color-action); } .faq-icon { font-size: 1.2em; color: var(--color-action); transition: var(--transition-bounce); font-weight: bold; } .faq-item.active .faq-icon { transform: rotate(45deg); color: var(--color-urgencia); } .faq-answer { max-height: 0; overflow: hidden; transition: var(--transition-premium); padding: 0 0 0 0; } .faq-item.active .faq-answer { max-height: 600px; padding: 0 0 2rem 0; } .faq-answer p { color: var(--color-texto-suave); margin: 0.5rem 0; } .faq-highlight { background: var(--gradient-testimonial); border-left: 4px solid var(--color-action); padding: 1rem 1.5rem; border-radius: var(--radius); margin: 1rem 0; } /* Ajuste específico para FAQs en dos columnas */ .faq-column { align-self: stretch; } .tratamiento-selector{ display: grid; gap: 2em; & > div{ display: grid !important; gap: 1em; margin-bottom: 2em; h3, h4{ color: var(--color-profesional); } } select{ width: 280px; margin-inline: auto; border-radius: var(--radius-button); padding: 8px; border: 2px solid var(--color-exclusivo); box-shadow: var(--shadow-card); font-family: var(--fuente-body); } } .precio-desde, .precio-hasta, .precio-desde span, .precio-hasta span { font-size: clamp(1.5rem, 1.4rem + 0.5vw, 2rem); font-weight: 700; color: var(--color-action); text-align: center; margin: 0; } footer{ display: grid; gap: 2em; margin-bottom: 2em; } .footer_main{ background: var(--gradient-hero); border-radius: var(--radius-card); padding: 2em; display: flex; flex-wrap: wrap; justify-content: space-between; h2{ color: var(--color-suave); -webkit-text-fill-color: var(--color-suave); margin-bottom: 0.5em; } h3{ color: var(--color-profesional); -webkit-text-fill-color: var(--color-profesional); font-weight: 400; font-size: clamp(1.2rem, 1.1rem + 0.3vw, 1.5rem); } .redes{ display: flex; flex-wrap: wrap; gap: 2em; align-items: center; justify-content: space-between; a{ transition: var(--transition-smooth); &:hover{ color: var(--color-action); transform: translateY(-2px); } } } } .footer_legal{ border-radius: var(--radius-card); background: var(--gradient-testimonial); padding: 2em; display: grid; gap: 1em; div{ display: flex; gap: 1em; flex-wrap: wrap; justify-content: space-evenly; small{color:var(--color-suave)} } a{ font-size: 0.9rem; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; color: var(--color-action); } small{ font-size: 0.9rem; color: var(--color-confianza); text-align: center; } } .buscador div{ display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 1em; text-align: center; } .buscador p{ margin: 0; } .buscador div input, .buscador div ul{ width: min(100%, 720px); height: min-content; } .buscador div ul{ padding: 0; display: flex; flex-direction: column; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; } .buscador div ul li a{ text-align: left; } .datos{ display: flex; flex-wrap: wrap; gap: 1em; padding: 2em 0; align-items: center; } .datos div{ flex: 1 0 480px; max-width: 100%; } .datos div ul{ display: grid; gap: 1em; border-left: 4px solid var(--accion); margin-top: 2em; li{list-style: none;} } .datos .redes{ display: flex; gap: 1em; } .map{ box-shadow: var(--shadow); } .contacto-redes{ display: grid; place-items: center; }
