/*

1. Add your custom Css styles below
2. Place the this code in your template:

 <link href="css/custom.css" rel="stylesheet">

*/

.filosofia-texto {
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0;
}

@font-face {
    font-family: 'Blair ITC';
    src: url('../fonts/blair-itc-bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

.blair {
    font-family: 'Blair ITC', sans-serif !important;
}

.counter.blair span {
    color: #fad700 !important;
    display: inline-block;
    transition: transform 0.15s ease;
}

.counter.blair:hover span {
    animation: counterPulse 0.5s ease-in-out;
}

/* ---- Spotlight titulo hero ---- */
.tituloHome2 {
    position: relative;
    display: inline-block;
}

.tituloHome2 span {
    font-size: inherit !important;
    line-height: inherit !important;
}

/* ---- Hero fullscreen ---- */
section.fullscreen.background-image {
    min-height: 100vh !important;
    background-size: cover !important;
    background-position: center center !important;
    overflow: visible !important;
}

/* ---- Bienvenidos card ---- */
.bienvenidos-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 50px rgba(0,0,0,0.18);
    max-width: 1140px;
    margin: -100px auto 0;
    padding: 110px 0 0;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.bienvenidos-card > .container {
    padding-left: 48px;
    padding-right: 48px;
    padding-bottom: 36px;
}

.bienvenidos-card section {
    background-color: transparent !important;
}

@media (max-width: 991px) {
    .bienvenidos-card {
        max-width: calc(100% - 40px);
        margin-top: -38px;
    }
}

/* ---- Boton más información hero ---- */
.btn-mas-info {
    display: block;
    width: fit-content;
    margin: 28px auto 0;
    padding: 11px 85px;
    border: 2px solid #fad700;
    border-radius: 50px;
    color: #fad700 !important;
    background: transparent;
    font-size: 18.5px;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    transition: background 0.25s ease;
}

a.btn-mas-info,
a.btn-mas-info:link,
a.btn-mas-info:visited,
a.btn-mas-info:hover,
a.btn-mas-info:focus,
.text-light a.btn-mas-info,
.text-light a.btn-mas-info:link,
.text-light a.btn-mas-info:visited,
.text-light a.btn-mas-info:hover {
    color: #fad700 !important;
}

a.btn-mas-info:hover,
.text-light a.btn-mas-info:hover {
    background: rgba(0, 0, 0, 0.5);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.hero-btns .btn-mas-info {
    margin: 0;
}

.btn-contactanos,
a.btn-contactanos,
a.btn-contactanos:link,
a.btn-contactanos:visited,
.text-light a.btn-mas-info.btn-contactanos,
.text-light a.btn-mas-info.btn-contactanos:link,
.text-light a.btn-mas-info.btn-contactanos:visited,
.text-light a.btn-mas-info.btn-contactanos:hover,
.text-light a.btn-mas-info.btn-contactanos:focus {
    background: #fad700 !important;
    color: #000 !important;
    border-color: #fad700 !important;
}

a.btn-contactanos:hover {
    background: #e6c400 !important;
    border-color: #e6c400 !important;
}

/* ---- Nav hover amarillo ---- */
#mainMenu nav ul li a:hover {
    color: #fad700 !important;
}

/* ---- Scroll slide-in desde la izquierda ---- */
.slide-in-left {
    opacity: 0;
    transform: translateX(-90px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.slide-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

@keyframes counterPulse {
    0%   { transform: scale(1);    }
    45%  { transform: scale(1.22); }
    100% { transform: scale(1);    }
}

.counter.blair {
    margin-bottom: 0 !important;
}

.counter.blair + .seperator {
    margin-top: 2px !important;
    margin-bottom: 2px !important;
}

/* ---- Arc carousel empresas ---- */
.arc-scene {
    width: 100%;
    height: 480px;
    position: relative;
    overflow: hidden;
}

.arc-card {
    position: absolute;
    width: 260px;
    left: 50%;
    top: 20px;
    margin-left: -130px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 28px rgba(0,0,0,0.12);
    padding: 28px 22px 32px;
    text-align: center;
    box-sizing: border-box;
    overflow: visible;
    cursor: pointer;
    transition: transform 0.72s cubic-bezier(0.645, 0.045, 0.355, 1.000),
                opacity  0.72s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

/* spotlight overlay creado por JS */
.arc-spotlight {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    overflow: hidden;
}

/* contenido por encima del spotlight */
.arc-card > *:not(.arc-spotlight) {
    position: relative;
    z-index: 1;
}

.arc-card .empresaImg {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.arc-card .empresaImg img {
    display: block;
}

.arc-logo-placeholder {
    font-family: 'Blair ITC', sans-serif;
    font-size: 1.1em;
    font-weight: bold;
    color: #222;
    opacity: 0.75;
    letter-spacing: 1px;
}

.arc-card p {
    font-size: 0.87em;
    line-height: 1.55;
    margin-bottom: 16px;
    color: #444;
}

.arc-card > a {
    position: absolute !important;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.arc-card .btn-reveal {
    background-color: #fad700 !important;
    border-color: #fad700 !important;
    color: #fff !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 28px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
}

.arc-nav {
    position: absolute;
    top: 160px;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 14px rgba(0,0,0,0.15);
    z-index: 200;
    font-size: 16px;
    color: #333;
    transition: background 0.2s, color 0.2s;
    padding: 0;
}

.arc-nav:hover { background: #fad700; color: #000; }
.arc-prev { left: 20px; }
.arc-next { right: 20px; }

@media (max-width: 767px) {
    .arc-scene { height: 520px; }
    .arc-card   { width: 220px; margin-left: -110px; }
    .arc-prev   { left: 5px; }
    .arc-next   { right: 5px; }
}

/* ---- Timeline v2 ---- */
.timeline-v2 {
    position: relative;
    padding: 10px 0 20px;
}

.tl-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    border-left: 2px dotted #ccc;
    z-index: 0;
    pointer-events: none;
}

.tl-highlight {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100px;
    background: #fad700;
    border-radius: 2px;
    z-index: 2;
    pointer-events: none;
}

@keyframes yearPulse {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.14); }
    100% { transform: scale(1); }
}

.tl-year {
    display: inline-block;
    transform-origin: center center;
}

.tl-year-pulse {
    animation: yearPulse 0.5s ease-in-out;
}

.tl-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 55px;
    position: relative;
}

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

.tl-dot {
    position: absolute;
    left: 50%;
    top: 5px;
    width: 30px;
    height: 30px;
    background: #fad700;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.tl-left .tl-content {
    grid-column: 1;
    text-align: right;
    padding-right: 52px;
}

.tl-right .tl-content {
    grid-column: 2;
    text-align: left;
    padding-left: 52px;
}

.tl-logo {
    display: flex;
    align-items: flex-start;
}

.tl-logo-right {
    grid-column: 2;
    padding-left: 52px;
    justify-content: flex-start;
}

.tl-logo-left {
    grid-column: 1;
    padding-right: 52px;
    justify-content: flex-end;
}

.tl-logo img {
    max-width: 166px;
    max-height: 83px;
    object-fit: contain;
    mix-blend-mode: multiply;
    opacity: 0.85;
    transition: transform 0.35s ease;
    cursor: default;
}

.tl-logo img:hover {
    transform: scale(1.1);
}

.tl-year {
    transition: transform 0.35s ease;
    cursor: default;
}

.tl-year:hover {
    transform: scale(1.12);
}

.tl-year {
    display: block;
    font-size: 1.85em;
    color: #fad700;
    font-weight: normal !important;
    margin-bottom: 8px;
    line-height: 1;
}

.tl-item p {
    color: #555;
    font-size: 1.1em;
    line-height: 1.75;
    margin: 0;
}

@media (max-width: 767px) {
    .timeline-v2::before { left: 16px; }
    .tl-item { grid-template-columns: 1fr; padding-left: 44px; }
    .tl-left .tl-content,
    .tl-right .tl-content { grid-column: 1; text-align: left; padding-left: 0; padding-right: 0; }
    .tl-dot { left: 16px; }
}

/* ---- Sección Valores ---- */
.valores-section {
    padding: 60px 0;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.valor-card {
    background: linear-gradient(to bottom, rgba(0,0,0,0.30), rgba(0,0,0,0.10));
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    padding: 32px 28px;
}

.valor-icono {
    width: 112px;
    height: 112px;
    margin-bottom: 14px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.valor-card:hover .valor-icono {
    animation: iconBounce 0.45s ease;
}

@keyframes iconBounce {
    0%   { transform: translateY(0); }
    40%  { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.valor-card {
    position: relative;
    overflow: hidden;
}

.valor-spotlight {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.valor-card > *:not(.valor-spotlight) {
    position: relative;
    z-index: 1;
}

.valor-card span {
    color: #666;
    font-size: 1.14em;
    line-height: 1.6;
}

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

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

/* ---- Círculo animado de contadores ---- */
.counter-circle-wrap {
    position: relative;
    width: 215px;
    height: 215px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    gap: 8px;
}
.counter-svg {
    position: absolute;
    top: 0; left: 0;
    width: 215px; height: 215px;
    transform: rotate(-90deg);
    overflow: visible;
    pointer-events: none;
}
.counter-ring {
    transition: stroke-dashoffset 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.counter-circle-wrap.in-view .counter-ring {
    stroke-dashoffset: 0;
}

/* Tamaño uniforme del número en los 3 círculos */
.counter-circle-wrap .counter,
.counter-circle-wrap .counter-custom {
    font-size: 45px !important;
    line-height: 1 !important;
    margin: 0 !important;
}
.counter-circle-wrap .counter span,
.counter-circle-wrap .counter-custom span {
    font-size: 45px !important;
    line-height: 1 !important;
}

/* Texto uniforme en los 3 círculos */
.counterDesc {
    margin: 0;
}
.counter-circle-wrap .counterDesc {
    font-size: 1.32em !important;
    max-width: 160px;
    text-align: center;
    line-height: 1.2;
    margin: 0 !important;
}

/* ---- Contadores custom (decimales) ---- */
.counter-custom {
    font-size: 3em;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 10px;
}

.counter-custom span {
    color: #fad700 !important;
    display: inline-block;
    transition: transform 0.15s ease;
}

.counter-custom:hover span {
    animation: counterPulse 0.5s ease-in-out;
}

/* ---- Sección Contacto ---- */
.contact-section {
    background: #fdd700;
    padding-top: 60px;
    padding-bottom: 80px;
}

.contact-row {
    align-items: center;
}

.contact-col-left {
    padding-right: 60px;
    padding-top: 10px;
}

.contact-bajada {
    color: rgba(0,0,0,0.7);
    font-size: 1.05em;
    line-height: 1.7;
    margin-top: 20px;
}

@media (max-width: 991px) {
    .contact-col-left {
        padding-right: 15px;
        margin-bottom: 36px;
    }
}

.contact-section .form-group {
    margin-bottom: 22px;
}

.contact-section label {
    display: block;
    font-weight: 700;
    color: #000;
    margin-bottom: 7px;
    font-size: 0.95em;
}

.contact-section .form-control {
    width: 100%;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,1);
    padding: 12px 20px;
    height: auto;
    font-size: 0.97em;
    color: #111;
    background: rgba(255,255,255,0.1);
    transition: background 0.2s ease, border-color 0.2s ease;
    box-sizing: border-box;
    box-shadow: none !important;
}

.contact-section .form-control:focus {
    background: rgba(255,255,255,0.18);
    border-color: #fff;
    outline: none;
}

.contact-section .form-control::placeholder {
    color: rgba(0,0,0,0.45);
}

.contact-section textarea.form-control {
    resize: vertical;
    min-height: 120px;
    border-radius: 20px;
}

.btn-contact-submit {
    background: #fff;
    color: #fdd700;
    border: 2px solid #fff;
    padding: 13px 56px;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.15s ease;
    margin-top: 8px;
}

.btn-contact-submit:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.contact-success {
    display: none;
    background: rgba(0,0,0,0.08);
    border: 1.5px solid rgba(0,0,0,0.25);
    border-radius: 8px;
    padding: 14px 20px;
    color: #000;
    margin-bottom: 24px;
    font-size: 0.97em;
}

/* ---- Variante blanca (página de contacto) ---- */
.contact-section--white {
    background: #fff;
}

.contact-section--white .contact-bajada {
    color: rgba(0,0,0,0.6);
}

.contact-section--white .form-control {
    border-color: #fad700;
    background: rgba(250,215,0,0.10);
}

.contact-section--white .form-control:focus {
    background: rgba(250,215,0,0.18);
    border-color: #fad700;
}

.contact-section--white .btn-contact-submit {
    background: #fad700;
    color: #fff;
    border-color: #fad700;
}

.contact-section--white .btn-contact-submit:hover {
    background: #e6c400;
    border-color: #e6c400;
}

.contact-section--white .contact-success {
    background: rgba(250,215,0,0.15);
    border-color: #fad700;
    color: #333;
}

/* ---- Comité Ejecutivo flip cards ---- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 60px;
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 0 80px;
}

.flip-card {
    perspective: 1000px;
    width: 100%;
    height: 520px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.645, 0.045, 0.355, 1.000);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.flip-card-back {
    background: #fad700;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 28px;
    overflow-y: auto;
}

.flip-card-back p {
    color: #000;
    font-size: 1.08em;
    line-height: 1.7;
    margin: 0;
}

.team-flip-info {
    margin-top: 18px;
    text-align: center;
}

.team-flip-info h3 {
    font-weight: normal !important;
    font-size: 1.35em !important;
    margin-bottom: 4px;
    margin-top: 0;
}

.team-flip-info span {
    color: #888;
    font-size: 0.9em;
    display: block;
}

@media (max-width: 767px) {
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        padding: 40px 0 60px;
    }
}
