:root {
    --primary-color: #9747FF;
    --secondary-color: #808080;
    --light-purple: #E6D5FF;
    --white: #ffffff;
    --black: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Header & Navigation */
header {
    position: fixed;
    width: 100%;
    top: 0;
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 0.5rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    flex: 0 0 auto;
}

.logo img {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease;
}

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

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(151, 71, 255, 0.7), rgba(151, 71, 255, 0.4)), url('../images/portada.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    margin-top: 70px;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: #7935CC;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(151, 71, 255, 0.3);
}

@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        padding: 1.5rem;
        margin: 0 1rem;
    }
}

/* About Hero Section */
.about-hero {
    height: 50vh;
    background: linear-gradient(rgba(151, 71, 255, 0.8), rgba(151, 71, 255, 0.6)), url('../images/portada.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 70px;
    color: var(--white);
}

.about-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-hero-content p {
    font-size: 1.5rem;
    opacity: 0.9;
}

/* About Section */
.about {
    padding: 5rem 1rem;
    background-color: var(--white);
}

.about-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

.about-content {
    padding: 2rem;
}

.about-content h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content p {
    color: var(--secondary-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(45deg, rgba(151, 71, 255, 0.1), rgba(151, 71, 255, 0.2));
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-item h3 {
    color: var(--black);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.stat-item p {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

/* Values Section */
.values {
    padding: 5rem 1rem;
    background-color: #f8f9fa;
}

.values h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.values-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.value-card h3 {
    color: var(--black);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

@media screen and (max-width: 768px) {
    .about-hero-content h1 {
        font-size: 2.5rem;
    }

    .about-hero-content p {
        font-size: 1.2rem;
    }

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

    .about-content {
        padding: 1rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .values h2 {
        font-size: 2rem;
    }
}

/* Practice Info Section */
.practice-info {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
}

.practice-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 20px;
    align-items: center;
}

.practice-content {
    padding: 20px;
}

.practice-content h2 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.practice-list {
    list-style: none;
    padding: 0;
}

.practice-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.practice-list li:before {
    content: "•";
    color: #8a2be2;
    position: absolute;
    left: 0;
}

.testimonial {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
}

.testimonial-container {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.testimonial-scroll {
    position: absolute;
    width: 100%;
    animation: scroll-testimonials 25s linear infinite;
}

.testimonial-item {
    padding: 15px;
    margin-bottom: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.testimonial-item blockquote {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    margin: 0;
    padding: 0;
}

.testimonial-item cite {
    display: block;
    margin-top: 10px;
    font-style: italic;
    color: #666;
    font-size: 0.9em;
    text-align: right;
}

@keyframes scroll-testimonials {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(-100%);
    }
}

.testimonial-container:hover .testimonial-scroll {
    animation-play-state: paused;
}

/* Contact Section */
.contact {
    padding: 5rem 1rem;
    background-color: var(--white);
}

.contact h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
}

#contact-form input,
#contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#contact-form textarea {
    height: 150px;
    resize: vertical;
}

#contact-form button {
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contact-form button:hover {
    background-color: #7935CC;
}

.map-container {
    width: 100%;
    margin-top: 3rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

@media screen and (max-width: 768px) {
    .map-container iframe {
        height: 300px;
    }
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 1rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    align-items: start;
}

.footer-logo img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact a {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
}

.footer-contact a:hover {
    opacity: 0.8;
}

.footer-contact i {
    width: 20px;
    text-align: center;
}

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

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Design */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--black);
    margin: 5px;
    transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0;
        height: 100vh;
        top: 0;
        background-color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 1000;
    }

    .nav-links li {
        opacity: 0;
    }

    .nav-active {
        transform: translateX(0%) !important;
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }

    .burger {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Professional Profile Section */
.professional-profile {
    padding: 4rem 2rem;
    background-color: #fff;
}

.profile-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.profile-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-content h2 {
    color: #8a2be2;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.profile-content h3 {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.profile-content p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn-services {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #8a2be2;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-services:hover {
    background-color: #7525c9;
}

/* Services Overview Section */
.services-overview {
    padding: 4rem 2rem;
    background-color: #f5f0ff;
}

.services-overview h2 {
    text-align: center;
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.services-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    color: #666;
    line-height: 1.6;
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.services-column h3 {
    color: #8a2be2;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.services-column ul {
    list-style: none;
    padding: 0;
}

.services-column li {
    color: #333;
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.services-column li:before {
    content: "•";
    color: #8a2be2;
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {
    .profile-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .profile-content h2 {
        font-size: 2rem;
    }

    .services-overview h2 {
        font-size: 2rem;
    }
}

/* Products Section */
.products {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
}

.products h2 {
    text-align: center;
    color: #8a2be2;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.products-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-card h3 {
    color: #333;
    font-size: 1.3rem;
    margin: 1rem;
}

.product-card p {
    color: #666;
    margin: 0 1rem 1rem;
    line-height: 1.4;
}

.whatsapp-button {
    display: block;
    background-color: #25d366;
    color: white;
    text-decoration: none;
    padding: 0.8rem;
    margin: 1rem;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s;
}

.whatsapp-button:hover {
    background-color: #128c7e;
}

.whatsapp-button i {
    margin-right: 8px;
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .products h2 {
        font-size: 2rem;
    }
}

/* Services Preview Section */
.services-preview {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
}

.services-preview h2 {
    text-align: center;
    color: #8a2be2;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.services-preview-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.preview-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.preview-card:hover {
    transform: translateY(-5px);
}

.preview-card i {
    font-size: 3rem;
    color: #8a2be2;
    margin-bottom: 1.5rem;
}

.preview-card h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.preview-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.preview-link {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #8a2be2;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.preview-link:hover {
    background-color: #7525c9;
}

@media (max-width: 768px) {
    .services-preview-grid {
        grid-template-columns: 1fr;
    }
    
    .services-preview h2 {
        font-size: 2rem;
    }
}

/* Testimonials Section */
.testimonials-section {
    padding: 40px 20px;
    background: #f9f9f9;
    text-align: center;
    overflow: hidden;
}

.testimonials-section h2 {
    margin-bottom: 30px;
    color: #333;
    font-size: 2em;
}

.testimonial-slider {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.testimonial-track {
    display: flex;
    width: max-content;
    animation: slide 30s linear infinite;
}

.testimonial-item {
    width: 800px;
    padding: 20px 40px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.testimonial-item blockquote {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin: 0;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.testimonial-item cite {
    display: block;
    margin-top: 15px;
    font-style: italic;
    color: #666;
    font-weight: bold;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonial-item {
        width: 100vw;
        padding: 20px;
    }
    
    .testimonial-item blockquote {
        font-size: 1rem;
        padding: 15px;
    }
}

/* Valor para los pacientes */
.valor-pacientes {
    padding: 60px 20px;
    background: #fff;
}

.valor-pacientes h2 {
    text-align: center;
    color: #8a2be2;
    font-size: 2.5em;
    margin-bottom: 40px;
}

.valor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.valor-card {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.valor-card:hover {
    transform: translateY(-5px);
}

.valor-image {
    width: 100%;
    height: 300px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 10px;
}

.valor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.valor-card:hover .valor-image img {
    transform: scale(1.05);
}

.valor-card h3 {
    color: #333;
    font-size: 1.5em;
    margin: 15px 0;
}

.valor-card p {
    color: #666;
    line-height: 1.6;
}

/* Responsive para Valor para los pacientes */
@media (max-width: 992px) {
    .valor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .valor-grid {
        grid-template-columns: 1fr;
    }

    .valor-image {
        height: 250px;
    }

    .valor-pacientes h2 {
        font-size: 2em;
    }
}
