/* Variables de Color - Tema Clínico Dental */
:root {
    --azul-clinico: #0d6efd;
    --azul-claro: #e7f1ff;
    --blanco: #ffffff;
    --gris-claro: #f8f9fa;
    --gris-medio: #6c757d;
    --gris-oscuro: #495057;
    --verde-whatsapp: #25d366;
    --verde-whatsapp-hover: #128c7e;
}

/* Reset y Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--gris-oscuro);
    overflow-x: hidden;
    background-color: var(--blanco);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header y Navegación */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--azul-clinico);
}

.nav-logo i {
    margin-right: 10px;
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--azul-clinico);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--azul-clinico);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section - Diseño Impactante */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--azul-clinico) 0%, #0056b3 50%, #003d82 100%);
    color: var(--blanco);
    padding: 0 20px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/><circle cx="20" cy="20" r="15" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/><circle cx="80" cy="80" r="25" fill="none" stroke="rgba(255,255,255,0.04)" stroke-width="0.5"/></svg>') repeat;
    background-size: 200px 200px;
    opacity: 0.3;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.6;
}

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

.btn-whatsapp-hero {
    background: var(--verde-whatsapp);
    color: var(--blanco);
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-hero:hover {
    background: var(--verde-whatsapp-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-hero i {
    font-size: 1.3rem;
}

.btn-secondary-hero {
    background: transparent;
    color: var(--blanco);
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--blanco);
    display: inline-block;
}

.btn-secondary-hero:hover {
    background: var(--blanco);
    color: var(--azul-clinico);
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image i,
.hero-img {
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

.hero-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Services Section - Tarjetas Modernas */
.services {
    padding: 100px 0;
    background: var(--gris-claro);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--gris-oscuro);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gris-medio);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--blanco);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(13, 110, 253, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--azul-clinico), #0056b3);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.15);
    border-color: var(--azul-clinico);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--azul-clinico), #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.2);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(13, 110, 253, 0.3);
}

.service-icon i {
    font-size: 2.2rem;
    color: var(--blanco);
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--gris-oscuro);
    font-weight: 600;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--azul-clinico);
}

.service-card p {
    color: var(--gris-medio);
    line-height: 1.7;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.service-card:hover p {
    color: var(--gris-oscuro);
}

/* Confidence Section - Estadísticas Clave */
.confidence {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--azul-clinico) 0%, #0056b3 100%);
    color: var(--blanco);
    position: relative;
    overflow: hidden;
}

.confidence::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="30" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>') repeat;
    background-size: 150px 150px;
    opacity: 0.2;
}

.confidence .container {
    position: relative;
    z-index: 2;
}

.confidence .section-title {
    color: var(--blanco);
    margin-bottom: 1rem;
}

.confidence .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4rem;
}

.confidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.confidence-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.confidence-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.confidence-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.confidence-item:hover .confidence-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.confidence-icon i {
    font-size: 2rem;
    color: var(--blanco);
}

.confidence-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--blanco), #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.confidence-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.confidence-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.confidence-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.confidence-feature:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.confidence-feature i {
    color: #4ade80;
    font-size: 1.3rem;
}

.confidence-feature span {
    color: var(--blanco);
    font-weight: 500;
}

/* About Section */
.about {
    padding: 100px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    font-weight: 700;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.feature i {
    color: #2c7bb6;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.feature span {
    color: #333;
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image i,
.about-img {
    opacity: 0.8;
}

.about-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Before After Section - Comparaciones Visuales */
.before-after {
    padding: 100px 0;
    background: var(--gris-claro);
}

.before-after-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.before-after-item {
    background: var(--blanco);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.before-after-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
}

.before-image, .after-image {
    position: relative;
    overflow: hidden;
}

.before-image img, .after-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.before-after-item:hover .before-image img,
.before-after-item:hover .after-image img {
    transform: scale(1.05);
}

.image-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--blanco);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.before-image .image-label {
    background: rgba(220, 53, 69, 0.9);
}

.after-image .image-label {
    background: rgba(40, 167, 69, 0.9);
}

.treatment-info {
    padding: 1.5rem;
    text-align: center;
}

.treatment-info h4 {
    color: var(--azul-clinico);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.treatment-info p {
    color: var(--gris-medio);
    font-size: 0.95rem;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: #f8f9fa;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: none;
}

.testimonial-card.active {
    display: block;
}

.stars {
    color: #ffc107;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.patient-info strong {
    display: block;
    color: #333;
    font-weight: 600;
}

.patient-info span {
    color: #666;
    font-size: 0.9rem;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: #667eea;
}

/* CTA Section - Llamada a la Acción Fuerte */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--verde-whatsapp) 0%, var(--verde-whatsapp-hover) 100%);
    color: var(--blanco);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="25" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>') repeat;
    background-size: 150px 150px;
    opacity: 0.2;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cta-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    line-height: 1.6;
}

.cta-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.cta-whatsapp-btn {
    background: var(--blanco);
    color: var(--verde-whatsapp);
    padding: 2rem;
    border-radius: 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-whatsapp-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.cta-whatsapp-btn i {
    font-size: 2.5rem;
}

.cta-whatsapp-btn span {
    font-size: 1.2rem;
    font-weight: 600;
}

.cta-whatsapp-btn small {
    opacity: 0.8;
    font-size: 0.9rem;
}

.cta-secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--blanco);
    padding: 2rem;
    border-radius: 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.cta-secondary-btn i {
    font-size: 2.5rem;
}

.cta-secondary-btn span {
    font-size: 1.2rem;
    font-weight: 600;
}

.cta-secondary-btn small {
    opacity: 0.8;
    font-size: 0.9rem;
}

.cta-benefits {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.benefit-item i {
    color: #4ade80;
    font-size: 1.1rem;
}

.benefit-item span {
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    color: #2c7bb6;
    font-size: 1.5rem;
    margin-top: 5px;
}

.contact-item h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
}

.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c7bb6;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 600;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    margin-right: 10px;
    font-size: 2rem;
    color: #2c7bb6;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #2c7bb6;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: #34495e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #2c7bb6;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #34495e;
    background: #34495e;
    border-radius: 5px;
    color: white;
}

.newsletter-form input::placeholder {
    color: #bdc3c7;
}

.newsletter-form button {
    background: #2c7bb6;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #2573a7;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .hero-image i {
        font-size: 8rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-image i {
        font-size: 8rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Animaciones adicionales */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2c7bb6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Botón Agendar Cita - Diseño Moderno y Profesional */
.btn-agar-cita {
    background: linear-gradient(135deg, var(--azul-clinico) 0%, #0056b3 100%);
    color: var(--blanco);
    padding: 20px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    min-width: 200px;
}

/* Efecto de brillo sutil */
.btn-agar-cita::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 ease;
}

.btn-agar-cita:hover::before {
    left: 100%;
}

/* Efecto Hover */
.btn-agar-cita:hover {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(13, 110, 253, 0.4);
}

.btn-agar-cita:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

/* Icono del botón */
.btn-agar-cita i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.btn-agar-cita:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Variante Verde (WhatsApp) */
.btn-agar-cita.btn-verde {
    background: linear-gradient(135deg, var(--verde-whatsapp) 0%, var(--verde-whatsapp-hover) 100%);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.btn-agar-cita.btn-verde:hover {
    background: linear-gradient(135deg, var(--verde-whatsapp-hover) 0%, #0d6efd 100%);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

/* Versión centrada en contenedor */
.btn-container-centered {
    text-align: center;
    margin: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .btn-agar-cita {
        padding: 18px 35px;
        font-size: 1rem;
        min-width: 180px;
        width: 100%;
        max-width: 300px;
    }
    
    .btn-agar-cita i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .btn-agar-cita {
        padding: 16px 30px;
        font-size: 0.95rem;
        min-width: 160px;
    }
    
    .btn-agar-cita i {
        font-size: 1.1rem;
    }
}

/* Animación de entrada */
@keyframes btnFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-agar-cita.animate {
    animation: btnFadeInUp 0.8s ease-out;
}

/* Efecto de pulso sutil */
@keyframes pulse {
    0% {
        box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
    }
    50% {
        box-shadow: 0 8px 30px rgba(13, 110, 253, 0.4);
    }
    100% {
        box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
    }
}

.btn-agar-cita.pulse {
    animation: pulse 2s infinite;
}

/* Optimización de Imágenes Responsive */
.hero-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-img:hover {
    transform: scale(1.05);
}

.about-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-img:hover {
    transform: scale(1.05);
}

.before-image img, .after-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.before-after-item:hover .before-image img,
.before-after-item:hover .after-image img {
    transform: scale(1.05);
}

/* Responsive para imágenes */
@media (max-width: 768px) {
    .hero-img {
        max-width: 300px;
        margin-top: 2rem;
    }
    
    .about-img {
        max-width: 250px;
        margin-top: 2rem;
    }
    
    .before-image img, .after-image img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .hero-img {
        max-width: 250px;
    }
    
    .about-img {
        max-width: 200px;
    }
    
    .before-image img, .after-image img {
        height: 180px;
}

/* Nota: La carga lazy se aplica como atributo loading="lazy" en las etiquetas img HTML */

/* Social Media Fixed Buttons */
.social-fixed-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex !important;
    flex-direction: column;
    gap: 15px;
}

.social-fixed-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible !important;
}

.social-fixed-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.whatsapp-btn {
    background: #25d366 !important;
    animation: pulse 2s infinite;
}

.facebook-btn {
    background: linear-gradient(45deg, #0084ff, #0066cc) !important;
}

.appointment-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24) !important;
}

.social-tooltip {
    position: absolute;
    right: 70px;
    background: var(--gris-oscuro);
    color: var(--blanco);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

.social-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--gris-oscuro);
}

.social-fixed-btn:hover .social-tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

/* Responsive para botones sociales */
@media (max-width: 768px) {
    .social-fixed-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .social-fixed-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .social-tooltip {
        font-size: 12px;
        right: 60px;
    }
    
    .social-fixed-btn:hover .social-tooltip {
        right: 70px;
    }
}

@media (max-width: 480px) {
    .social-fixed-buttons {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }
    
    .social-fixed-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .social-tooltip {
        display: none; /* Ocultar tooltips en móviles muy pequeños */
    }
}

/* Responsive para imágenes */
@media (max-width: 768px) {
    .hero-img {
        max-width: 300px;
        margin-top: 2rem;
    }
    
    .about-img {
        max-width: 250px;
        margin-top: 2rem;
    }
    
    .social-bubbles {
        bottom: 20px;
        right: 20px;
    }
    
    .social-bubble {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .bubble-text {
        font-size: 12px;
        right: 60px;
    }
    
    .social-bubble:hover .bubble-text {
        right: 70px;
    }
}

@media (max-width: 480px) {
    .hero-img {
        max-width: 250px;
    }
    
    .about-img {
        max-width: 200px;
    }
    
    .social-bubbles {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }
    
    .social-bubble {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .bubble-text {
        display: none; /* Ocultar texto en móviles muy pequeños */
    }
}
