/* 
* Dr. Javier Lacorzana - Sitio web profesional
* Estilos personalizados
*/

/* Variables globales */
:root {
    --primary-color: #3a5a78;
    --secondary-color: #4f86c6;
    --accent-color: #2c7c9c;
    --text-color: #333333;
    --text-light: #666666;
    --background-light: #f7f9fc;
    --background-white: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
    --border-radius: 5px;
    --section-padding: 80px 0;
}

/* Estilos generales */
body {
    font-family: 'Raleway', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--background-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--primary-color);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

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

.section-padding {
    padding: var(--section-padding);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
}

.section-divider {
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0 auto 30px;
}

.section-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.btn {
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, 
.btn-primary:focus {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline-secondary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

img {
    max-width: 100%;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    transition: background-color 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.navbar-scrolled {
    padding: 12px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--accent-color);
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    padding: 8px 15px;
    margin: 0 5px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

/* Hero Section */
.hero-section {
    padding: 180px 0 100px;
    position: relative;
    background-color: var(--background-light);
}

.hero-content {
    padding-right: 30px;
}

.hero-content h1 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.hero-content .subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.hero-content .lead {
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.hero-image img {
    border-radius: 10px;
    transition: transform 0.5s ease;
}

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

.cta-buttons {
    margin-top: 30px;
}

/* Sobre Mí Section */
.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.about-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(58, 90, 120, 0.1);
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
    transition: var(--transition);
}

.about-image:hover::before {
    opacity: 1;
}

.about-content h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.credential-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.credential-item i {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-right: 15px;
}

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

/* Especialidades Section */
.specialty-card {
    padding: 30px;
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.specialty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.specialty-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.specialty-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Qué es la Oftalmología Section */
.check-list {
    list-style-type: none;
    padding-left: 0;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

.check-list li::before {
    content: '\f00c';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/* Investigación Section */
.research-content,
.publications-list {
    background-color: var(--background-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    height: 100%;
}

.publication-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.publication-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.publication-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.publication-meta {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-style: italic;
    margin-bottom: 10px;
}

/* Testimoniales */
.testimonial-card {
    background-color: var(--background-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 20px 0;
}

.testimonial-content {
    position: relative;
}

.testimonial-content i.fa-quote-left {
    font-size: 2rem;
    color: var(--accent-color);
    opacity: 0.3;
    margin-bottom: 15px;
    display: block;
}

.testimonial-author {
    margin-top: 20px;
}

.testimonial-author h4 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.testimonial-author p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.8;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: -50px;
}

.carousel-control-next {
    right: -50px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Contacto Section */
.contact-info {
    background-color: var(--background-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    height: 100%;
}

.contact-item {
    display: flex;
    margin-bottom: 25px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item .icon {
    min-width: 50px;
    height: 50px;
    background-color: rgba(58, 90, 120, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
}

.contact-item .icon i {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.contact-item .content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item .content p {
    margin-bottom: 0;
}

.contact-form {
    background-color: var(--background-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    height: 100%;
}

.form-control {
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--accent-color);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 70px 0 20px;
}

.footer h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    list-style-type: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.newsletter-form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .btn {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.footer hr {
    margin: 30px 0;
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    font-size: 0.9rem;
}

.footer-legal {
    list-style-type: none;
    padding-left: 0;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0;
}

.footer-legal li {
    margin-left: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal a:hover {
    color: white;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 140px 0 60px;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 120px 0 50px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .contact-info,
    .contact-form {
        margin-bottom: 30px;
    }
    
    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-legal li {
        margin: 5px 10px;
    }
    
    .footer-bottom {
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .btn-lg {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .cta-buttons .btn.ms-2 {
        margin-left: 0 !important;
    }
    
    .specialty-card {
        padding: 20px;
    }
} 