/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.navbar-brand h1 {
    font-size: 2rem;
    margin-bottom: 0;
}

/* Botó principal */
.btn-success {
    background-color: #4CAF50;
    border-color: #4CAF50;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #3e8e41;
    border-color: #3e8e41;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}



.bg-light {
    background-color: #f8f9fa !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-color: #ffffff;
}

.hero-section h1 {
    font-size: 2.8rem;
}

/* Services Section */
.services-section {
    background-color: #000;
}

.services-section img {
    height: 200px;
    object-fit: cover;
}

/* Experts Section */
.experts-section .card {
    transition: all 0.3s ease;
}

.experts-section .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Testimonials Section */
.testimonials-section .card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.testimonials-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Footer */
footer a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Hero Section con imagen de fondo */
.hero-section {
    position: relative;
    background-image: url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center top; /* <--- cambia esto */
    min-height: 600px;
    padding: 120px 0;
    color: white;
}


.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    padding: 30px 0;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
        min-height: 500px;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
}

/* Estilo para imÃ¡genes grandes similar a tu captura */
.service-card-overlay {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 100%;
    margin-bottom: 20px;
}

.service-card-overlay .service-image {
    width: 100%;
    height: 400px; /* Altura grande similar a tu captura */
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4), transparent);
    padding: 20px 15px;
    transition: background 0.3s ease;
}

.service-card-overlay .service-title {
    font-size: 1.6rem; /* TÃ­tulo mÃ¡s grande */
    margin-bottom: 0.5rem;
}

.service-card-overlay .service-text {
    font-size: 0.9rem; /* Texto un poco mÃ¡s grande */
    opacity: 0.9;
    line-height: 1.5;
}

/* Estilos para la secció de servicios detallados */
.detailed-services-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
}

.service-detailed-card {
    height: 100%;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.service-detailed-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-image-container {
    overflow: hidden;
}

.service-detailed-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-detailed-card:hover .service-detailed-image {
    transform: scale(1.05);
}

.service-detailed-content {
    padding: 25px;
}

.service-detailed-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-detailed-text {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-detailed-card .btn {
    transition: all 0.3s ease;
    border: 1px solid #333;
    padding: 8px 20px;
    font-weight: 500;
}

.service-detailed-card .btn:hover {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

@media (max-width: 992px) {
    .section-title, .section-subtitle {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .detailed-services-section {
        padding: 50px 0;
    }
    
    .section-title, .section-subtitle {
        font-size: 1.6rem;
    }
    
    .service-detailed-card {
        margin-bottom: 30px;
    }
}


@media (max-width: 576px) {
    .navbar-brand h1 {
        font-size: 1.5rem;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
}

/* Estilos exactos para la secció de equipo como en la imagen */
.team-section {
    padding: 80px 0;
}

.team-expert {
    margin-bottom: 40px;
}

.team-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.team-content h2 {
    font-size: 28px;
    color: #000;
    margin-bottom: 5px;
}

.team-content p.text-success {
    color: #4CAF50 !important;
    font-size: 16px;
    font-weight: 500;
}

.team-content p {
    color: #333;
    line-height: 1.6;
    font-size: 15px;
}

.social-links a {
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #4CAF50 !important;
}

.btn-outline-success {
    color: #4CAF50;
    border-color: #4CAF50;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-outline-success:hover {
    background-color: #4CAF50;
    color: white;
}

/* Ajustes responsive */
@media (max-width: 992px) {
    .team-expert {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .team-image {
        margin-bottom: 20px;
        margin-right: 0 !important;
    }
    
    .team-content {
        width: 100%;
    }
}

/* Estilos para la secció de historia */
.history-section .card {
    transition: transform 0.3s ease;
    border-radius: 10px;
}

.history-section .card:hover {
    transform: translateY(-5px);
}

.history-section .card-title {
    color: #4CAF50;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Estilos para la pÃ¡gina de servicios */
.services-header {
    padding: 80px 0 40px;
}

.vertical-line {
    display: inline-block;
    width: 3px;
    height: 50px;
    background-color: #333;
    margin: 0 15px;
    vertical-align: middle;
}

.text-success {
    color: #4CAF50 !important;
}

.service-card {
    height: 100%;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.03);
}

.service-title {
    font-weight: 700;
    font-size: 1.5rem;
}

.service-description {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

.btn-outline-success {
    color: #4CAF50;
    border-color: #4CAF50;
    transition: all 0.3s ease;
}

.btn-outline-success:hover {
    background-color: #4CAF50;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.2);
}

/* Estilos para la secció de servicios adicionales */
.additional-services {
    background-color: #f9f9f9;
}

.section-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-icon {
    color: #4CAF50;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(to right, #43a047, #2e7d32);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .services-header {
        padding: 50px 0 30px;
    }
    
    .service-image img {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .vertical-line {
        display: none;
    }
    
    .service-image img {
        height: 200px;
    }
}

/* Estilos para la secció de servicios detallados en grid */
.detailed-services-grid {
    padding: 70px 0;
}

.service-detail-card {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
}

.service-detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-detail-image {
    position: relative;
    overflow: hidden;
}

.service-detail-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-detail-card:hover .service-detail-image img {
    transform: scale(1.05);
}

.service-detail-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-detail-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .service-detail-title {
        font-size: 1.1rem;
        min-height: 50px;
    }
}

@media (max-width: 768px) {
    .service-detail-image img {
        height: 250px;
    }
    
    .service-detail-title {
        min-height: auto;
    }
}

/* Estilos para la pÃ¡gina de consultas nutricionales */

/* Hero Section */
.service-hero {
    position: relative;
    padding: 120px 0;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1;
}

.service-hero .container {
    position: relative;
    z-index: 2;
}

.service-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.service-hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #4CAF50;
}

.service-hero-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.service-hero-buttons {
    margin-top: 2rem;
}

/* Service Description */
.service-description {
    padding: 80px 0;
}

.section-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #4CAF50;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 0.5rem;
}

.stat-text {
    font-size: 0.95rem;
    color: #555;
}

/* Benefits Cards */
.benefit-card {
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.benefit-icon {
    color: #4CAF50;
}

.benefit-title {
    font-weight: 600;
    margin-bottom: 15px;
}

/* Process Cards */
.process-card {
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.process-card:hover {
    transform: translateY(-10px);
}

.process-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #4CAF50;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.process-title {
    font-weight: 600;
    margin-bottom: 15px;
}

/* Testimonials */
.testimonial-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
}

.testimonial-text {
    font-style: italic;
    position: relative;
    padding-left: 20px;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    color: #4CAF50;
    position: absolute;
    top: -20px;
    left: -10px;
    opacity: 0.2;
}

/* FAQ Section */
.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 10px !important;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    padding: 20px;
    background-color: #f8f9fa;
}

.accordion-button:not(.collapsed) {
    color: #4CAF50;
    background-color: #f8f9fa;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(76, 175, 80, 0.25);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234CAF50'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 20px;
    font-size: 0.95rem;
}

/* Call to Action */
.cta-section {
    background: linear-gradient(to right, #43a047, #2e7d32);
}

/* Related Services */
.related-services .card {
    transition: transform 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.related-services .card:hover {
    transform: translateY(-10px);
}

.related-services .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Banderas */
.flags-title{
    color: rgba(255,255,255,.85);
    font-size: 13px;
    margin-bottom: 6px;
}
.flags-wrap{
    display:flex;
    gap:12px;
    align-items:center;
    margin-top:10px;
}

/* Tarjetita de cada bandera */
.flag-item{
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 10px rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.25);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* Imagen dentro */
.flag-item img{
    width: 34px;
    height: 22px;
    border-radius: 5px;
    object-fit: cover;
    display:block;
}

/* Hover efecto pro */
.flag-item:hover{
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
    border-color: rgba(255,255,255,.45);
}

/* Tooltip */
.flag-item::after{
    content: attr(data-country);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    
    background: rgba(0,0,0,.85);
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    white-space: nowrap;

    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

/* Flechita del tooltip */
.flag-item::before{
    content: "";
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);

    border: 7px solid transparent;
    border-bottom: 7px solid rgba(0,0,0,.85);

    opacity: 0;
    transition: opacity .18s ease;
}

.flag-item:hover::after{
    opacity: 1;
    transform: translateX(-50%) translateY(2px);
}

.flag-item:hover::before{
    opacity: 1;
}


/* Responsive Adjustments */
@media (max-width: 992px) {
    .service-hero {
        padding: 80px 0;
    }
    
    .service-hero-title {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .service-hero {
        padding: 60px 0;
    }
    
    .service-hero-title {
        font-size: 2rem;
    }
    
    .service-hero-text {
        font-size: 1rem;
    }
    
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}