/* ============================================
   SCHEIN CONSULTORES - Custom Stylesheet
   ============================================ */

/* --- Font Faces --- */
@font-face {
    font-family: 'Gotham';
    src: url('../fonts/gotham/GOTHAM-LIGHT.TTF') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('../fonts/gotham/Gotham-Book.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('../fonts/gotham/GOTHAM-MEDIUM.TTF') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('../fonts/gotham/GOTHAM-BOLD.TTF') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('../fonts/gotham/GOTHAM-BLACK.TTF') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Abril Fatface';
    src: url('../fonts/AbrilFatface-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* --- CSS Variables --- */
:root {
    --color-dark-teal: #2D3E40;
    --color-coral: #E8674A;
    --color-teal-green: #3FBFA0;
    --color-light-bg: #E8E4DC;
    --color-light-sage: #DDE5DB;
    --color-white: #FFFFFF;
    --color-dark-text: #2D3E40;
    --color-coral-hover: #D45A3F;
    --font-gotham: 'Gotham', 'Segoe UI', Tahoma, sans-serif;
    --font-abril: 'Abril Fatface', serif;
}

/* --- Global Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-gotham);
    font-weight: 400;
    color: var(--color-dark-text);
    background-color: var(--color-light-sage);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Navbar --- */
.navbar-schein {
    background-color: transparent;
    padding: 25px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.navbar-schein.scrolled {
    background-color: var(--color-dark-teal);
    padding: 10px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.navbar-schein .navbar-brand img {
    height: 45px;
    padding-left: 70px;
}

.navbar-schein .nav-link {
    font-family: var(--font-gotham);
    font-weight: 500;
    color: var(--color-teal-green) !important;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 15px !important;
    transition: color 0.3s ease, opacity 0.3s;
}

.navbar-schein .nav-link-ingreso {
    font-weight: 600;
}

.navbar-schein .nav-link.active,
.navbar-schein .nav-link:hover,
.navbar-schein .nav-link:focus {
    color: var(--color-coral) !important;
}

.navbar-schein .navbar-toggler {
    border: 2px solid var(--color-coral);
    padding: 6px 10px;
}

.navbar-schein .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23E8674A' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- Hero Section --- */
.hero-section {
    background-color: var(--color-dark-teal);
    background-image: url('../img/header.png');
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 10px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-abril);
    font-size: 2.3rem;
    color: var(--color-coral);
    line-height: 1.25;
    max-width: 690px;
    margin: 0 auto;
    text-align: center;
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1100;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    color: white;
}

/* --- Section Titles (Coral band) --- */
.section-band {
    background-color: var(--color-coral);
    padding: 12px 0;
    text-align: center;
}

.section-band h2 {
    font-family: var(--font-gotham);
    font-weight: 700;
    color: var(--color-white);
    font-size: 1.3rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
}

/* --- Intro Text Section --- */
.intro-section {
    background-color: var(--color-light-sage);
    padding: 60px 0;
    text-align: center;
}

.intro-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-dark-text);
    max-width: 650px;
    margin: 10px auto;
}

.intro-section .brand-highlight {
    color: var(--color-coral);
    font-weight: 700;
}

/* --- Services Home Block --- */
.services-home {
    background-color: var(--color-light-sage);
    padding: 50px 0 60px;
}

.service-card {
    text-align: left;
    transition: transform 0.3s ease;
}

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

.service-card .service-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.4s ease, transform 0.4s ease;
    border-radius: 4px;
}

.service-card:hover .service-img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.service-card h4 {
    font-family: var(--font-gotham);
    font-weight: 900;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--color-dark-text);
    margin-top: 15px;
    letter-spacing: 1px;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.service-card ul li {
    font-size: 0.85rem;
    color: var(--color-coral);
    padding: 2px 0;
    font-weight: 500;
}

.service-card ul li::before {
    content: '•';
    margin-right: 6px;
    color: var(--color-coral);
}

.service-card ul li a {
    color: var(--color-coral);
    transition: color 0.3s, padding-left 0.3s;
}

.service-card ul li a:hover {
    color: var(--color-dark-teal);
    padding-left: 5px;
}

/* Button "TODOS NUESTROS SERVICIOS" */
.btn-servicios {
    display: inline-block;
    font-family: var(--font-gotham);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-dark-text);
    border: 2px solid var(--color-dark-text);
    padding: 12px 30px;
    background: transparent;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.btn-servicios:hover {
    background-color: var(--color-dark-teal);
    color: var(--color-white);
    border-color: var(--color-dark-teal);
}

/* --- Carousel (Statistics) Section --- */
.carousel-stats {
    background-color: var(--color-dark-teal);
    padding: 50px 0;
    color: var(--color-white);
    position: relative;
}

.carousel-stats .carousel-title {
    font-family: var(--font-gotham);
    font-weight: 900;
    font-size: 2.2rem;
    color: var(--color-coral);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 30px;
}

.stats-row {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 40px;
    flex-wrap: wrap;
    border: 2px dashed var(--color-teal-green);
    border-radius: 8px;
    padding: 25px 30px;
    max-width: 900px;
    margin: 0 auto 25px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-number {
    font-family: var(--font-abril);
    font-size: 4rem;
    color: var(--color-teal-green);
    line-height: 1;
}

.stat-item:first-child .stat-label {
    color: var(--color-teal-green);
}

.stat-label {
    font-family: var(--font-gotham);
    font-weight: 900;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-white);
    line-height: 1.2;
    text-align: left;
}

.stat-number-alt {
    font-family: var(--font-abril);
    font-size: 3rem;
    color: var(--color-light-sage);
    line-height: 1;
}

/* Countries Row */
.countries-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.countries-row .countries-label {
    font-family: var(--font-gotham);
    font-weight: 900;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-coral);
    margin-right: 15px;
    margin-bottom: 0;
    /* Override default if any */
}

.countries-row .country-item {
    display: inline-flex;
    align-items: center;
    margin: 4px 8px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-white);
}

.countries-row .country-flag {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 5px;
}

/* Carousel Controls */
.carousel-stats .carousel-control-prev,
.carousel-stats .carousel-control-next {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid var(--color-coral);
    border-radius: 50%;
    opacity: 0.85;
}

.carousel-stats .carousel-control-prev {
    left: 15px;
}

.carousel-stats .carousel-control-next {
    right: 15px;
}

.carousel-stats .carousel-control-prev:hover,
.carousel-stats .carousel-control-next:hover {
    opacity: 1;
    background: rgba(232, 103, 74, 0.15);
}

/* --- Team Section --- */
.team-section {
    background-color: var(--color-light-sage);
    padding: 50px 0 60px;
}

.team-member {
    text-align: center;
    margin-bottom: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member .member-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.4s ease, box-shadow 0.4s ease, transform 0.3s;
    margin-bottom: 12px;
}

.team-member:hover .member-photo {
    filter: grayscale(0%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.team-member h5 {
    font-family: var(--font-gotham);
    font-weight: 900;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-dark-text);
    margin-bottom: 2px;
}

.team-member .member-role {
    font-family: var(--font-gotham);
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--color-coral);
}

.team-member .linkedin-icon {
    color: var(--color-coral);
    font-size: 1.3rem;
    margin-top: 5px;
    display: inline-block;
    transition: transform 0.3s, color 0.3s;
}

.team-member .linkedin-icon:hover {
    transform: scale(1.2);
    color: var(--color-dark-teal);
}

/* --- Team Modal --- */
.modal-equipo .modal-dialog {
    max-width: 900px;
}

.modal-equipo .modal-content {
    background-color: rgba(60, 100, 95, 0.92);
    border: none;
    border-radius: 10px;
    color: var(--color-white);
    overflow: hidden;
}

.modal-equipo .modal-body {
    display: flex;
    gap: 30px;
    padding: 30px 35px;
    align-items: flex-start;
}

.modal-equipo .modal-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    max-width: none;
    border: 3px solid rgb(255, 255, 255);
}

.modal-equipo .modal-info h4 {
    font-family: var(--font-gotham);
    font-weight: 900;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 2px;
}

.modal-equipo .modal-info .modal-role {
    font-family: var(--font-abril);
    font-size: 1.3rem;
    color: var(--color-coral);
    margin-bottom: 12px;
}

.modal-equipo .modal-info p {
    font-size: 0.85rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 6px;
}

.modal-equipo .btn-close-modal {
    position: absolute;
    top: 12px;
    right: 15px;
    background: var(--color-teal-green);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.8rem;
    transition: background 0.3s;
    z-index: 1050;
}

.modal-equipo .btn-close-modal:hover {
    background: var(--color-coral);
}

.modal-equipo .modal-sidebar {
    width: 160px;
    flex-shrink: 0;
    text-align: center;
}

.modal-equipo .linkedin-modal {
    color: var(--color-coral);
    font-size: 2rem;
    display: inline-block;
    margin-top: 15px;
    transition: transform 0.3s;
}

.modal-equipo .linkedin-modal:hover {
    transform: scale(1.15);
}

/* --- Clients Section --- */
.clients-section {
    background-color: var(--color-light-sage);
    padding: 40px 0 50px;
}

.clients-carousel .carousel-inner {
    padding: 20px 0;
}

.client-logos-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 10px 40px;
}

.client-logos-row img {
    height: 35px;
    max-width: 130px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s, transform 0.3s;
}

.client-logos-row img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.clients-carousel .carousel-control-prev,
.clients-carousel .carousel-control-next {
    width: 35px;
    height: 35px;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid var(--color-coral);
    border-radius: 50%;
    opacity: 0.7;
}

.clients-carousel .carousel-control-prev:hover,
.clients-carousel .carousel-control-next:hover {
    opacity: 1;
    background: rgba(232, 103, 74, 0.1);
}

/* --- Contact / Footer Section --- */
.contact-section {
    background-color: var(--color-dark-teal);
    padding: 40px 0 50px;
    text-align: center;
}

.contact-section .footer-logo {
    height: 50px;
    margin-bottom: 15px;
}

.contact-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.contact-icons a {
    color: var(--color-coral);
    font-size: 1.6rem;
    transition: transform 0.3s, color 0.3s;
}

.contact-icons a:hover {
    transform: scale(1.2);
    color: var(--color-teal-green);
}

/* --- Services Detail Page --- */
.services-page-header {
    background-color: var(--color-dark-teal);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
}

.services-page-header .brand-logo {
    height: 45px;
}

.btn-volver {
    font-family: var(--font-gotham);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-white);
    transition: color 0.3s;
}

.btn-volver:hover {
    color: var(--color-coral);
}

/* Services Sidebar */
.services-sidebar {
    padding-top: 30px;
}

.services-sidebar .sidebar-category {
    font-family: var(--font-gotham);
    font-weight: 900;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--color-dark-text);
    margin-top: 20px;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

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

.services-sidebar ul li {
    margin-bottom: 3px;
    padding-left: 0 !important;
}

.services-sidebar ul li::before {
    content: none !important;
    display: none !important;
}

.services-sidebar ul li a {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-coral);
    padding: 5px 10px 5px 0;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.services-sidebar ul li a:hover,
.services-sidebar ul li a.active {
    background-color: var(--color-coral);
    color: var(--color-white);
    border-left-color: var(--color-coral);
    padding-left: 10px;
    /* Restore padding when active/hover for the pill shape */
    margin-left: -5px;
    /* Shift the pill left so the text stays aligned */
}

.services-sidebar ul li a::before {
    content: none;
    display: none;
}

.services-sidebar ul li a.active::before {
    content: none;
    display: none;
}

/* Service Detail Content */
.service-detail {
    padding: 30px 0 60px;
}

.service-detail .service-detail-img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    filter: grayscale(100%);
    border-radius: 4px;
    margin-bottom: 25px;
}

.service-detail h2 {
    font-family: var(--font-gotham);
    font-size: 2.2rem;
    color: var(--color-coral);
    margin-bottom: 10px;
}

.service-detail .service-subtitle {
    font-family: var(--font-gotham);
    font-weight: 900;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--color-dark-text);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.service-detail p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--color-dark-text);
    margin-bottom: 8px;
}

.service-detail ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.service-detail ul li {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--color-dark-text);
    padding-left: 15px;
    position: relative;
}

.service-detail ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-dark-text);
}

/* Button "QUIERO SABER MÁS" */
.btn-quiero-saber {
    font-family: var(--font-gotham);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-coral);
    background-color: var(--color-dark-teal);
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    display: inline-block;
}

.btn-quiero-saber:hover {
    background-color: var(--color-coral);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- Quiero Saber Más Modal --- */
.modal-saber-mas .modal-content {
    background-color: var(--color-dark-teal);
    color: var(--color-white);
    border-radius: 10px;
    border: none;
    text-align: center;
    padding: 30px;
}

.modal-saber-mas .modal-body p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-white);
}

.modal-saber-mas .modal-body a {
    color: var(--color-coral);
    font-weight: 700;
}

.modal-saber-mas .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2rem;
    }

    .carousel-stats .carousel-title {
        font-size: 1.6rem;
    }

    .stat-number {
        font-size: 3rem;
    }

    .stat-number-alt {
        font-size: 2.2rem;
    }

    .modal-equipo .modal-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .navbar-schein .navbar-collapse {
        background-color: var(--color-dark-teal);
        padding: 15px;
        margin-top: 10px;
        border-radius: 8px;
    }

    .navbar-schein .navbar-brand {
        margin-left: auto;
        margin-right: 15px;
    }

    .navbar-schein .navbar-brand img {
        padding-left: 0;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-section {
        min-height: 50vh;
    }

    .stats-row {
        gap: 20px;
        padding: 15px 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-number-alt {
        font-size: 1.8rem;
    }

    .section-band h2 {
        font-size: 1rem;
    }

    .team-member .member-photo {
        width: 120px;
        height: 120px;
    }

    .service-card .service-img {
        max-height: 250px;
    }

    .modal-equipo .modal-photo {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.4rem;
    }

    .countries-row .country-item {
        font-size: 0.75rem;
    }

    .client-logos-row {
        gap: 15px;
        padding: 10px 15px;
    }

    .client-logos-row img {
        height: 25px;
    }
}
/* ============================================
   FIX: legibilidad del logo sobre la curva del header
   --------------------------------------------
   Con "background-size: cover" la curva verde cambia de lugar según la
   proporción de la pantalla y, en varios anchos, queda justo detrás del
   logo (mismo color). Solución:
   - < 992px (celulares/tablets): navbar con fondo oscuro fijo.
   - >= 992px: la imagen se escala por altura y se ancla a la posición del
     logo, de modo que la curva siempre queda a la izquierda del logo.
   ============================================ */

/* Celulares y tablets */
@media (max-width: 991.98px) {
    .navbar-schein,
    .navbar-schein.scrolled {
        background-color: var(--color-dark-teal);
        padding: 10px 0;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    }
}

/* Escritorio: curva anclada al logo */
@media (min-width: 992px) {
    .hero-section {
        --container-w: 960px;      /* ancho .container de Bootstrap */
        --logo-offset: 82px;       /* gutter 12px + padding-left 70px del logo */
        --wave-x: 25.2vh;          /* borde de la curva: 14.4% del ancho de la imagen (alto 70vh) */
        --wave-gap: 35px;          /* aire entre la curva y el logo */
        height: 70vh;
        background-image:
            url('../img/header.png'),
            linear-gradient(to right, #01CFAF 50%, #11252A 50%);
        background-size: auto 100%, 100% 100%;
        background-position:
            calc(50vw - var(--container-w) / 2 + var(--logo-offset) - var(--wave-x) - var(--wave-gap)) top,
            0 0;
        background-repeat: no-repeat;
    }
}

@media (min-width: 1200px) {
    .hero-section { --container-w: 1140px; }
}

@media (min-width: 1400px) {
    .hero-section { --container-w: 1320px; }
}
