/*
Titulos:
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-variation-settings: "wdth" 100;
*/

:root {
    --bg-color: #ffffff;
    --text-main: #1a1a1a;
    --text-light: #666666;
    --border-light: #e0e0e0;
    --bg-dark: #1a1a1a;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-box {
    width: 100%;
    background-color: #e5e5e5;
    background-size: cover;
    background-position: center;
    min-height: 300px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.image-box:hover {
    transform: scale(1.02);
}

.image-box::before {
    content: "INTEGRAL";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    letter-spacing: 5px;
    color: #ccc;
    opacity: 0.5;
}

.full-width-img {
    height: 600px;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

#imagen2 img{
    height: 25rem;
    object-fit: cover;
    object-position: center;
    display: block;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.4s ease;
}

.navbar-hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

.logo img{
    width: 25rem;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    margin-left: 2.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--text-main);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none; 
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 30px;
    height: 2px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.4s;
}

.menu-toggle .menu-text {
    font-size: 0.6rem;
    letter-spacing: 1px;
    color: #666;
    margin-top: 2px;
    font-weight: 300;
}

.hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 8rem;
}

.hero h1 {
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-variation-settings: "wdth" 100;
    font-size: 5rem;
    margin-bottom: 1rem;
    color: #111;
    line-height: 1.2;
    animation: fadeInUp 1.2s ease-out forwards;
}

.hero p {
    color: #999;
    letter-spacing: 1px;
    font-size: 1.5rem;
    margin-top: 10px;
    animation: fadeInUp 1.2s ease-out 0.3s forwards;
    opacity: 0;
}

.main-image-section {
    padding: 0 5%;
    margin-bottom: 80px;
}

.texto-intro {
    background-color: #F3F3F3;
    padding: 9rem 20rem;
    text-align: center;
    margin: 0rem 0rem 5rem 0rem;
}

.texto-intro p {
    color: #555;
    font-size: 1.1rem;
    font-weight: 300;
}

.section-title {
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-variation-settings: "wdth" 100;
    font-size: 4rem;
    margin-bottom: 60px;
}

.principles {
    padding: 0 5% 100px 5%;
    text-align: center;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    transition: all 0.4s ease;
}

.principles-grid:hover .card {
    opacity: 0.3;
    transform: scale(0.95);
    filter: blur(2px);
}

.card {
    padding: 50px 30px;
    background: #fff;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
    opacity: 1;
    transform: scale(1);
    position: relative;
    overflow: hidden;
}

.principles-grid .card:hover {
    opacity: 1;
    transform: scale(1.1);
    filter: blur(0);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.card-number {
    display: block;
    font-size: 2.5rem;
    color: #ccc;
    margin-bottom: 20px;
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-variation-settings: "wdth" 100;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 400;
}

.card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.7;
}

.imagendoble {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 0 5%;
    margin-bottom: 100px;
}

.imagendoble .image-box {
    height: 400px;
}

.seccion-texto-imagen {
    margin: 8rem;
}

.seccion-texto-imagen .image-box {
    height: auto !important;
    min-height: auto !important;
    background-color: transparent;
}

.seccion-texto-imagen .image-box img {
    position: relative;
    width: 100%;
    height: auto; 
    object-fit: contain; 
    max-height: 800px; 
}

.sv-cabecera-guia {
    margin-bottom: 30px;
}

.sv-cifra-indice {
    display: block;
    font-size: 0.75rem;
    color: #bbb;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.sv-titulo-seccion {
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-variation-settings: "wdth" 100;
    font-size: 2.8rem;
}

.texto-contenido {
    text-align: left;
    color: #444;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.mt-50 {
    margin-top: 50px;
}

.sv-seccion-filosofia {
    padding: 50px 10% 120px 10%;
    background-color: #fff;
}

.sv-contenedor-principal {
    max-width: 1200px;
    margin: 0 auto;
}

.sv-rejilla-valores {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 80px;
    row-gap: 50px;
}

.sv-item-principio {
    padding: 15px 0;
    cursor: pointer;
    background: transparent;
    transition: none;
}

.sv-contenido-valor {
    position: relative;
    padding-left: 25px; 
}

.sv-contenido-valor::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    width: 2px;
    height: 0%;
    background-color: #1a1a1a;
    transition: height 0.4s cubic-bezier(0.0, 0.21, 0.20, 0.69);
    z-index: 1;
}

.sv-item-principio:hover .sv-contenido-valor::before {
    height: 100%;
}

.sv-subtitulo, 
.sv-texto-descripcion {
    transition: transform 0.4s cubic-bezier(0.0, 0.10, 0.05, 0.54);
}

.sv-subtitulo {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #111;
}

.sv-texto-descripcion {
    font-size: 0.9rem;
    color: #666;
}

.sv-item-principio:hover .sv-subtitulo,
.sv-item-principio:hover .sv-texto-descripcion {
    transform: translateX(20px); 
    color: #000;
}

.tres-fotos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 5%;
    margin-bottom: 100px;
}

.tres-fotos .square {
    height: 350px;
}

.services-dark {
    background-color: #3A3A3A;
    color: #fff;
    padding: 100px 5%;
}

.dark-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.dark-header h2 {
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-variation-settings: "wdth" 100;
    font-size: 3rem;
    margin-bottom: 15px;
}

.dark-header p {
    color: #888;
    font-size: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
}

.service-item {
    background-color: #3A3A3A;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.service-item:not(.empty-fill):hover {
    transform: scale(1.05);
    box-shadow: 0 35px 70px -10px rgba(0, 0, 0, 0.9);
    background-color: #3A3A3A;
    z-index: 100;
    border: 1px solid #ffffff;
    cursor: pointer;
}

.service-item:not(.empty-fill):hover::before {
    width: 350%;
    height: 350%;
}

.service-item span {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 20px;
    display: block;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-item:not(.empty-fill):hover span {
    color: #fff;
    transform: translateX(10px);
}

.service-item h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 400;
    line-height: 1.3;
    color: #fff;
    position: relative;
}

.service-item p {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.6;
    margin-top: auto;
    position: relative;
}

.service-item.empty-fill {
    background-color: #3A3A3A;
    pointer-events: none;
}

.contact-section {
    padding: 100px 5%;
    background-color: #fff;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-main-title {
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-size: 3.5rem;
    margin-bottom: 50px;
    color: #1a1a1a;
}

.info-group {
    margin-bottom: 40px;
}

.info-group h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 400;
    color: #1a1a1a;
}

.info-group p {
    color: #444;
    font-size: 1rem;
    line-height: 1.8;
}

.info-group a{
    text-decoration: none;
    color: #444;
    font-size: 1rem;
    line-height: 1.8;
}

.info-group nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.info-group nav a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    margin-left: 0;
}

.info-group nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #1a1a1a;
    transition: width 0.3s ease;
}

.info-group nav a:hover::after {
    width: 100%;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.form-field {
    margin-bottom: 25px;
}

.form-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1a1a1a;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 18px 20px;
    border: 1px solid transparent;
    background-color: #F5F5F5;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: #333;
    border-radius: 4px;
    appearance: none;
    transition: all 0.3s ease;
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    background-color: #fff;
    border-color: #000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

option {
    background-color: #585858;
    color: #ffffff;
    border-radius: 15px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #000;
    cursor: pointer;
}

.form-check label {
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
}

.submit-btn {
    width: 50%;
    background: #1a1a1a;
    color: #fff;
    padding: 20px;
    border: none;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-radius: 4px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.submit-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

.main-footer {
    background-color: #3A3A3A;
    color: #fff;
    padding: 80px 5% 30px 5%;
}

.footer-cta {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.footer-cta h2 {
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-variation-settings: "wdth" 100;
    font-size: 3rem;
    margin-bottom: 15px;
    color: #fff;
}

.footer-cta p {
    color: #aaa;
    margin-bottom: 40px;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-cta {
    display: inline-block;
    border: 1px solid #fff;
    color: #fff;
    padding: 18px 50px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.3s ease-out;
    background: transparent;
}

.btn-cta:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-divider {
    border: 0;
    border-top: 5px solid #3F3F3F;
    margin-bottom: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    font-weight: 700;
    color: #fff;
}

.footer-col p,
.footer-col li {
    font-size: 0.9rem;
    color: #888;
    line-height: 2;
    margin-bottom: 5px;
}

.footer-col ul {
    list-style: none;
}

.footer-col.links a {
    color: #888;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-col.links a:hover {
    color: #fff;
    transform: translateX(10px);
}

.footer-col.contact a {
    color: #888;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    line-height: 2;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-col.contact a:hover {
    color: #fff;
    transform: translateX(10px);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border: 1px solid #444;
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s;
    text-decoration: none;
}

.social-icons a:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.social-icons a:hover .fa-whatsapp {
    color: #000;
}

.copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 30px;
}

.copyright p {
    color: #555;
    font-size: 0.8rem;
}

.menu-toggle .bar {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: #000;
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: #000;
}

@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .section-title, .sv-titulo-seccion, .dark-header h2 { font-size: 3rem; }
    .principles-grid, 
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-item.empty-fill {
        display: none; 
    }
    .navbar {
        padding: 1rem 5%;
        flex-direction: row; 
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    .logo img {
        width: 15rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        text-align: center;
        background-color: #fff;
        padding: 20px 0;
        border-top: 1px solid #f0f0f0;
        margin-top: 15px;
        animation: slideDown 0.3s ease-out;
    }
    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 15px 0;
        display: block;
        font-size: 1.1rem;
        margin-left: 0; 
    }
    .tres-fotos {
        grid-template-columns: 1fr !important; 
        gap: 30px;
        margin-bottom: 50px;
    }

    .tres-fotos .square {
        width: 100%;
        height: auto; 
        min-height: 300px;
        aspect-ratio: 16/9; 
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        text-align: left; 
    }
    
    .contact-wrapper {
        gap: 40px;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {

    .hero {
        height: auto; 
        padding: 100px 20px;
        margin: 0;
    }

    .hero h1 { font-size: 2.8rem; }

    .texto-intro {
        padding: 4rem 10%; 
        margin-bottom: 3rem;
    }

    .imagendoble, 
    .sv-rejilla-valores,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-section {
        padding: 60px 5%;
    }
    
    .contact-info {
        margin-bottom: 40px;
    }

    .info-group nav {
        justify-content: center; 
    }

    .seccion-texto-imagen, .sv-seccion-filosofia {
        margin: 4rem 0;
        padding-left: 5%;
        padding-right: 5%;
    }
}

@media (max-width: 480px) {

    .logo img {
        width: 12rem;
    }

    .hero h1 { font-size: 2.2rem; }
    .section-title, .sv-titulo-seccion, .dark-header h2, .contact-main-title {
        font-size: 2rem;
    }

    .principles-grid, 
    .services-grid, 
    .footer-content {
        grid-template-columns: 1fr;
    }

    .card, .service-item {
        padding: 40px 20px;
    }

    .services-dark {
        padding: 60px 20px;
    }

    .footer-content {
        text-align: center;
        gap: 40px;
    }

    .social-icons {
        justify-content: center;
    }

    .submit-btn, .btn-cta {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 320px) {
    
    .hero h1 { font-size: 1.8rem; }
    .logo { font-size: 0.7rem; } 

    .navbar, .contact-section, .services-dark {
        padding-left: 10px;
        padding-right: 10px;
    }

    .card, .service-item {
        padding: 30px 15px; 
    }

    .card h3, .service-item h3 {
        font-size: 1.1rem;
    }

    .footer-col.contact a {
        font-size: 0.8rem;
    }
}