h2 { font-size: clamp(1.5rem, 1.692rem + 2.54vw, 60px); color: var(--color-primary); max-width: 20ch; font-weight: 700; margin-bottom: 1em; } h3 { font-size: clamp(1.6rem, 2rem + 2vw, 2.5rem); color: var(--color-secondary); max-width: 30ch; font-weight: 700; text-transform: none; letter-spacing: -0.02em; line-height: 1.12; margin-bottom: 0.5em; } h4 { font-size: clamp(1rem, 1.2rem + 1.2vw, 1.4rem); color: var(--color-grey); font-weight: 700; text-transform: none; letter-spacing: -0.02em; line-height: 1.12; margin-top: 0.5em; } .highlight{ background: var(--color-accent); color: var(--color-white); padding: 0.1em 0.3em; border-radius: var(--radius-cards); font-weight: 600; } ol{ padding-left: 3em; padding-bottom: 1 em; li::marker{ font-size: 1.2em; font-weight: 700; } } ul li::marker { color: var(--color-accent); } small { font-size: 20px; font-weight: 400; display: block; color: var(--color-grey-1); margin-bottom: 1.5rem; } img { max-width: 100%; height: auto; display: block; -webkit-filter: drop-shadow(0 0 8px #ff9500) drop-shadow(0 0 15px rgba(255, 149, 0, 0.6)) drop-shadow(0 0 25px rgba(255, 149, 0, 0.3)); filter: drop-shadow(0 0 8px #ff9500) drop-shadow(0 0 15px rgba(255, 149, 0, 0.6)) drop-shadow(0 0 25px rgba(255, 149, 0, 0.3)); transition: transform 0.3s ease, -webkit-filter 0.3s ease; transition: transform 0.3s ease, filter 0.3s ease; transition: transform 0.3s ease, filter 0.3s ease, -webkit-filter 0.3s ease; } img:hover { transform: scale(1.03); -webkit-filter: drop-shadow(0 0 10px #ffae00) drop-shadow(0 0 20px rgba(255, 174, 0, 0.6)) drop-shadow(0 0 30px rgba(255, 174, 0, 0.3)); filter: drop-shadow(0 0 10px #ffae00) drop-shadow(0 0 20px rgba(255, 174, 0, 0.6)) drop-shadow(0 0 30px rgba(255, 174, 0, 0.3)); } .flow > * + * { margin-top: 1em; } .two_columns_left { flex-direction: row-reverse; } .three_columns { display: flex; flex-wrap: wrap; gap: 3em; justify-content: center; align-items: flex-start; margin-bottom: 4em; & > div { position: relative; width: min(100%, 376px); display: grid; border-radius: var(--radius-cards); overflow: hidden; img { transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); } img:hover { transform: scale(1.015); } h4 { font-size: 24px; max-width: 296px; margin: 0; } } } .text_center { display: grid; gap: 1em; place-items: center; width: min(100%, 820px); margin-inline: auto; text-align: center; } .boton-whatsapp { position: fixed; bottom: 6rem; right: 20px; z-index: 100; -webkit-animation: scale-up-center 0.4s cubic-bezier(0.390,0.575,0.565,1.000) 0.5s 6 alternate-reverse both; animation: scale-up-center 0.4s cubic-bezier(0.390,0.575,0.565,1.000) 0.5s 6 alternate-reverse both; transition: all .2s ease-in-out; width: max-content; text-decoration: none; } .boton-whatsapp img{ box-shadow: none; display: inline-block; } @media screen and (width >=800px) { .boton-whatsapp::before { content: "¡Contáctanos!"; font-size: 14px; color: white; background-color: #2eda2e83; border: 3px solid white; padding: 8px; border-radius: 8px; } } .boton-whatsapp:hover { -webkit-filter: drop-shadow(5px 5px 5px rgba(190, 190, 190, .7)); filter: drop-shadow(5px 5px 5px rgba(190, 190, 190, .7)); } /* .header_hero Responsivo con Imágenes Adaptables */ .header_hero { overflow: hidden; min-height: 60vh; width: 100%; position: relative; color: var(--color-white); background: linear-gradient(135deg, rgba(74, 74, 114, 0.3) 0%, rgba(26, 26, 46, 0.5) 100%), url('/img/clicfit-ejercicios-en-casa-desktop.avif') center/cover no-repeat; .hero { position: relative; z-index: 2; padding: 8rem 0 0; width: min(calc(100% - 2rem), 1320px); margin-inline: auto; .hero_content { width: min(100% - 600px); ol, ol li, p{ margin: 0; } ol{margin-bottom: 1em;} } img { width: 100%; height: auto; min-width: 300px; display: block; border-radius: 16px; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); } } } /* Tablet (768px - 1024px) */ @media (max-width: 1024px) { .header_hero { padding: 6rem 0 4rem; .hero { padding: 0 1rem; display: grid; place-items: center; img{display: none;} .hero_content { display: grid; place-items: center; width: 100%; text-align: center; gap: 1em; p{margin: 0;} ol{ padding: 0; li{ list-style: none; } } } } } } /* Mobile (hasta 768px) */ @media (max-width: 768px) { .header_hero { background: url('/img/clicfit-ejercicios-en-casa-mobile.avif') center/cover no-repeat; } } /* Mobile pequeño (hasta 480px) */ @media (max-width: 480px) { .header_hero { min-height: 45vh; .hero { padding: 3rem 0 0; .hero_content { max-width: 320px; } img { min-width: 200px; border-radius: 8px; } } } } /* Alternativa usando CSS moderno con image-set() para mejor rendimiento */ @supports (background: image-set()) { .header_hero { background: image-set( url('/img/clicfit-ejercicios-en-casa-desktop.webp') type("image/webp"), url('/img/clicfit-ejercicios-en-casa-desktop.avif') type("image/avif"), url('/img/clicfit-ejercicios-en-casa-desktop.jpg') type("image/jpeg") ) center/cover no-repeat; } @media (max-width: 1024px) and (min-width: 769px) { .header_hero { background: image-set( url('/img/clicfit-ejercicios-en-casa-tablet.webp') type("image/webp"), url('/img/clicfit-ejercicios-en-casa-tablet.avif') type("image/avif") ) center/cover no-repeat; } } @media (max-width: 768px) { .header_hero { background: image-set( url('/img/clicfit-ejercicios-en-casa-mobile.webp') type("image/webp"), url('/img/clicfit-ejercicios-en-casa-mobile.avif') type("image/avif") ) center/cover no-repeat; } } } /* Preload de imágenes críticas para mejorar rendimiento */ @media (min-width: 1025px) { .header_hero::after { content: ''; position: absolute; width: 1px; height: 1px; background: url('/img/clicfit-ejercicios-en-casa-desktop.avif'); opacity: 0; pointer-events: none; } } @media (max-width: 1024px) and (min-width: 769px) { .header_hero::after { content: ''; position: absolute; width: 1px; height: 1px; background: url('/img/clicfit-ejercicios-en-casa-tablet.avif'); opacity: 0; pointer-events: none; } } @media (max-width: 768px) { .header_hero::after { content: ''; position: absolute; width: 1px; height: 1px; background: url('/img/clicfit-ejercicios-en-casa-mobile.avif'); opacity: 0; pointer-events: none; } } /* Botones Base - Material Design 2025 */ .buttons { display: inline-flex; align-items: center; justify-content: center; width: max-content; height: min-content; padding: 18px 36px; text-align: center; font-weight: 700; font-family: var(--font); color: var(--color-white); font-size: clamp(1rem, 2vw, 1.2rem); text-decoration: none; border: none; cursor: pointer; border-radius: 50px; position: relative; overflow: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: var(--shadow); letter-spacing: 0.5px; text-transform: none; } .buttons::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1); } .buttons:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2), 0 8px 20px rgba(0, 0, 0, 0.1); } .buttons:hover::before { left: 100%; } .buttons:active { transform: translateY(-2px); transition: transform 0.1s ease; } /* Botón Primario */ .btn-primary { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 12px 30px rgba(162, 106, 9, 0.4), 0 6px 15px rgba(0, 0, 0, 0.1); } .btn-primary:hover { background: linear-gradient(135deg, hsl(from var(--color-main) h s calc(l + 10%)) 0%, hsl(from var(--color-primary) h s calc(l + 10%)) 100%); box-shadow: 0 20px 50px rgba(162, 106, 9, 0.5), 0 10px 25px rgba(0, 0, 0, 0.15); } /* Fallback para navegadores sin soporte de hsl() relative colors */ @supports not (color: hsl(from white h s l)) { .btn-primary:hover { background: linear-gradient(135deg, #252158 0%, #ff7842 100%); } } /* Botón Secundario */ .btn-secondary { background: #ffffff; border: 2px solid var(--color-main); color: var(--color-main); border-radius: 50px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 8px 20px rgba(162, 106, 9, 0.2), 0 4px 10px rgba(0, 0, 0, 0.05); position: relative; z-index: 1; } .btn-secondary::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, var(--color-main) 0%, var(--color-secondary) 100%); border-radius: 50px; z-index: -1; transform: scale(0); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .btn-secondary:hover { color: var(--color-white); border-color: transparent; box-shadow: 0 16px 40px rgba(162, 106, 9, 0.4), 0 8px 20px rgba(0, 0, 0, 0.1); } .btn-secondary:hover::after { transform: scale(1); } /* Estados de enfoque para accesibilidad */ .buttons:focus { outline: none; box-shadow: var(--shadow), 0 0 0 3px rgba(162, 106, 9, 0.3); } /* Estados deshabilitado */ .buttons:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; box-shadow: var(--shadow) !important; } .buttons:disabled::before { display: none; } /* Responsive Design */ @media (max-width: 768px) { .buttons { padding: 16px 28px; font-size: 1rem; border-radius: 40px; } } @media (max-width: 480px) { .buttons { padding: 14px 24px; font-size: 0.95rem; width: 100%; max-width: 280px; } } /* Variante de botón pequeño */ .buttons.btn-small { padding: 12px 24px; font-size: 0.9rem; border-radius: 30px; } /* Variante de botón grande */ .buttons.btn-large { padding: 24px 48px; font-size: clamp(1.1rem, 2.5vw, 1.4rem); border-radius: 60px; } .border-left { border-left: 0.8rem solid var(--color-main); padding-left: 1rem; } /* icons */ .icons { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1rem; margin-top: 1rem; } .img-fondo { background-image: url("/img/fondo-section.avif"); } .redes { display: flex; gap: 4rem; justify-content: center; padding: 2em 0; a{ display: flex; align-items: center; gap: 1rem; margin: 0; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); &:hover{ color: var(--color-main); transform: translateY(-2px); } } } /* CSS para las Tarjetas */ .cards-section { background: var(--color-grey); padding: 4rem 0; } .cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin: 4rem 0 2rem; } .card { background: var(--color-white); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; transition: transform 0.3s ease; } .card:hover { transform: translateY(-5px); } .card h4 { color: var(--color-main); font-size: 1.5rem; margin-bottom: 1rem; font-weight: 700; } .card ul li{ font-size: 0.92rem; list-style: none; margin-left: 0; } .card-icon { display: grid; place-items: center; } /* footer */ footer { display: grid; place-items: center; } footer .legal { border-top: 1px solid var(--color-main); display: flex; justify-content: space-between; flex-wrap: wrap; padding-top: 1rem; small{ font-weight: 400; font-size: 16px; } }
