:root {
    --bg: #f5f7fb;
    --ink: #111827;
    --muted: #4b5563;
    --brand: #003f5c;
    --brand-2: #0a9396;
    --accent: #a87a34;
    --white: #ffffff;
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    --radius: 18px;
    --nav-h: 110px;

    --nav-bg: #0d1b2e;
    --nav-link: #b8c4d0;
    --nav-link-hover: #ffffff;
    --nav-icon: #b8c4d0;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 14px);
}

body {
    margin: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--ink);
}

h1,
h2,
h3 {
    margin: 0;
    font-family: 'Source Serif Pro', serif;
}


p {
    margin: 0;
    line-height: 1.6;
    color: var(--ink);
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}


/* Navbar fijo */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background-color: var(--nav-bg);
}

.nav-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(12px, 2.2vw, 28px);
}

/* Logo */
.nav-bar-logo {
    flex-shrink: 0;
}

.nav-bar-logo img {
    width: 250px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Enlaces de navegación */
.main-nav {
    display: flex;
    gap: clamp(14px, 4vw, 64px);
    flex: 1;
    justify-content: center;
    padding-right: clamp(220px, 30vw, 120px);
}

.main-nav a {
    text-decoration: none;
    color: var(--nav-link);
    font-family: "Montserrat";
    font-weight: 500;
    font-size: clamp(1rem, 2vw, 1.5rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.2s ease;
    line-height: 1;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #c9a84c;
    /* dorado similar al logo */
    border-radius: 999px;
    transition: width 0.25s ease;
}

.main-nav a:hover {
    color: var(--nav-link-hover);
}

.main-nav a:hover::after {
    width: 100%;
}

/* Bloque superior derecho: direccion + redes */
.nav-right {
    position: absolute;
    top: 8px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    color: var(--bg);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 4px 6px;
    z-index: 1100;
}

.nav-menu-extra {
    display: none;
}

/* Iconos de redes sociales */
.social-nav {
    display: flex;
    margin-top: 16px;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.social-nav a {
    color: var(--nav-icon);
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
}

.social-nav a:hover {
    color: var(--nav-link-hover);
    transform: translateY(-2px);
}

.social-nav i {
    color: var(--bg);
    height: 32px;
    width: 32px;
}

/* Direccion navbar */
.address-nav {
    display: block;
}

.address-nav p {
    color: var(--nav-link);
    font-family: "Montserrat";
    font-size: clamp(0.62rem, 0.9vw, 0.95rem);
    letter-spacing: 0.02em;
    color: #d4dde7;
    white-space: nowrap;
    line-height: 1;
}

@media (max-width: 980px) {
    .address-nav {
        display: none;
    }

    .main-nav {
        padding-right: clamp(120px, 22vw, 220px);
    }
}

/* ============ CARRUSEL ============ */
.carousel-section {
    width: 100%;
}

.carousel {
    position: relative;
    width: 100%;
    height: clamp(480px, 72vh, 780px);
    overflow: hidden;
    background: #111;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.52);
}

.slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 clamp(60px, 10vw, 180px);
}

.slide-text {
    color: #ffffff;
    font-family: 'Source Serif Pro', 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.8rem, 4.5vw, 4rem);
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

/* Botones de flecha */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: 1;
    cursor: pointer;
    padding: 0 clamp(10px, 2vw, 28px);
    transition: color 0.2s ease;
    font-family: Georgia, serif;
    user-select: none;
}

.carousel-btn:hover {
    color: rgba(255, 255, 255, 1);
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

/* Dots */
.dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background 0.25s ease;
}

.dot.active {
    background: rgba(255, 255, 255, 0.95);
}

/* ============ ABOUT ============ */
.about {
    background: var(--bg);
    padding: 120px 20px 140px;
    text-align: center;
}

.about-wrapper {
    max-width: 1050px;
    margin: auto;
}

/* Logo */
.about-logo img {
    margin-bottom: 20px;
    height: 200px;
    width: auto;
    object-fit: contain;
}

/* Descripcion */
.about-description p {
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--ink);
    max-width: 100%;
    margin: auto;
}

/* Referencias */
.about-references {
    margin-top: 70px;
}

.about-references h3 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 18px;
}

.about-references ul {
    list-style: none;
    padding: 0;
}

.about-references li {
    font-size: 1.5rem;
    color: var(--ink);
    margin-bottom: 6px;
}


/* ==== SECCION SERVICIOS ==== */
.services {
    background: #e9e9e9;
}

/* IMAGENES SUPERIORES */

.service-triggers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.service-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-trigger {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    height: 420px;
    min-height: clamp(260px, 30vw, 380px);
}

.service-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(.52);
    transition: transform .6s ease, filter .3s ease;
}

.service-trigger:hover img {
    transform: scale(1.04);
    filter: brightness(.58);
}

/* TEXTO SOBRE IMAGEN */

.trigger-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
}

.trigger-label h2 {
    color: #fff;
    font-family: 'Source Serif Pro', serif;
    font-size: clamp(2rem, 4.4vw, 5rem);
    line-height: 0.95;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 14px;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.trigger-arrow {
    color: #fff;
    font-size: clamp(1rem, 1.2vw, 1.35rem);
    opacity: .95;
}

.service-trigger::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 8, .35);
    z-index: 1;
}

.service-trigger.active::after {
    background: rgba(8, 8, 8, .22);
}

@media (max-width: 900px) {
    .service-triggers {
        grid-template-columns: 1fr;
    }

    .service-trigger {
        min-height: 250px;
    }
}

/* PANEL DESPLEGABLE */

.acc-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .6s ease;
    background: #e9e9e9;
}

.acc-panel.open {
    max-height: 900px;
}

/* GRID SERVICIOS */

.service-grid {
    display: flex;
    justify-content: center;
    padding: 80px 20px;
}

.service-column {
    max-width: 420px;
    text-align: center;
}

/* ICONO */

.service-column img {
    width: 70px;
    margin-bottom: 20px;
}

/* TITULO */

.service-column h3 {
    font-family: 'Source Serif Pro', serif;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #1f2a34;
}

/* TARJETAS */

.service-card {
    margin-bottom: 26px;
}

.service-card span {
    display: block;
    font-weight: 600;
    color: #b8862b;
    margin-bottom: 6px;
}

.service-card p {
    font-size: .95rem;
    color: #2e3740;
}

/* FRASE FINAL */

.services-footer {
    grid-column: 1 / -1;
    text-align: center;
    width: 100%;
    padding: 40px 20px 80px;
    background-color: var(--white);
}

.services-footer p {
    font-family: 'Source Serif Pro', serif;
    font-size: 3.5rem;
    color: var(--accent);
    max-width: 1100px;
    margin: auto;
}

/* ============ TRABAJEMOS JUNTOS ============ */
.work-together {
    background: var(--nav-bg);
    color: white;
}

/* HERO SUPERIOR */
.work-hero {
    position: relative;
    height: 320px;
    /* overflow: hidden; */
}

.work-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom,
            rgba(14, 36, 52, 0),
            rgba(14, 36, 52, 1));
}

/* CONTENIDO */

.work-content {
    max-width: 1100px;
    margin: auto;
    text-align: center;
    padding: 70px 20px 90px;
}

/* TITULO */

.work-content h2 {
    font-family: 'Montserrat';
    font-size: 4.2rem;
    letter-spacing: .06em;
    color: var(--accent);
    margin-bottom: 30px;
}

/* TEXTO PRINCIPAL */

.work-text {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--bg);
    margin-bottom: 50px;
    width: 100%;
}

/* SUBTITULO */

.work-content h3 {
    font-family: 'Montserrat';
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 18px;
}

/* TEXTO SECUNDARIO */

.work-subtext {
    font-size: .95rem;
    line-height: 1.7;
    color: #cfd6dc;
}


/* ============ FORM CONTACT ============ */
.contact {
    background: var(--bg);
    text-align: center;
    padding: 100px 20px;
}

.contact-title {
    font-family: 'Montserrat';
    font-size: 60px;
    color: var(--accent);
    margin-bottom: 20px;
}

.contact-text {
    max-width: 1100px;
    margin: auto;
    font-size: 22px;
    line-height: 1.6;
    color: var(--ink);
}

.contact-subtitle {
    margin-top: 50px;
    margin-bottom: 40px;
    font-size: 40px;
    color: var(--accent);
    font-family: "Monserrat";
}

/* GRID FORM */
.contact-form {
    max-width: 1000px;
    margin: auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px 40px;
}

/* INPUTS */
.form-group input {
    width: 100%;
    padding: 18px 25px;
    border: 2px solid var(--nav-bg);
    border-radius: var(--radius);
    font-size: 18px;
    font-family: 'Open Sans';
    background: var(--bg);
    transition: all .25s ease;
}

/* HOVER */
.form-group input:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow);
}

/* PLACEHOLDER */
.form-group input::placeholder {
    color: var(--muted);
}


/* BOTON   */
.form-submit{
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.btn-register{
    padding: 16px 55px;

    font-size: 22px;
    font-family: 'Source Serif Pro';
    letter-spacing: .05em;

    color: var(--white);
    background: var(--accent);

    border: none;
    border-radius: 40px;

    cursor: pointer;

    transition: all .25s ease;
}

/* Hover */

.btn-register:hover{
    background: var(--accent);

    transform: translateY(-2px);

    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* Click */

.btn-register:active{
    transform: translateY(0);
    box-shadow: none;
}



/* =========== MODAL ============ */

.modal {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    z-index: 100;
}

/* ACTIVO  */
.modal.show {
    opacity: 1;
    visibility: visible;
}

/* CONTENIDO DEL MODAL */
.modal-content {
    background: var(--white);
    max-width: 1000px;
    padding: 60px 60px 50px;
    border: 1px solid var(--nav-bg);
    border-radius: 20px;
    text-align: center;
}

/* TITULO */
.modal-title {
    font-family: 'Montserrat';
    font-size: 2.8rem;
    color: var(--accent);
    margin-bottom: 30px;
}

/* TEXTO */
.modal-text {
    font-size: 22px;
    line-height: 1.7;
    color: var(--nav-bg);
    max-width: 800px;
    margin: auto;
}

/* EMAIL */
.modal-email {
    color: var(--accent);
}

/* TERMINOS */
.modal-terms {
    margin-top: 40px;
    font-size: 28px;
    color: var(--accent);
}

/* BOTONES */ 
.modal-buttons{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 40px;
}

.modal-buttons button{

    padding: 20px;

    font-size: 30px;
    font-family: 'Source Serif Pro',serif;

    border: 1px solid var(--nav-bg);
    background: var(--white);

    cursor: pointer;

    transition: .25s;
}

/* HOVER */

.modal-buttons button:hover{
    background: var(--nav-bg);
    color: var(--white);
}

/* =========== FOOTER ============ */
.footer{
    background: var(--nav-bg);
    width: 100%;
    height: 200px;
    padding: 60px 20px;
    position: relative;
}

.footer-content{
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo{
    width: 400px;
}

/* BOTON WHATSAPP */

.whatsapp-float{
    position: fixed;
    right: 24px;
    bottom: 20px;
    background: var(--white);
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1200;
}

.whatsapp-float img{
    width: 60px;
    height: 60px;
}

.whatsapp-float.whatsapp-stop {
    position: absolute;
    right: 24px;
    bottom: 20px;
}

/* ============ RESPONSIVE GLOBAL ============ */
@media (max-width: 1200px) {
    :root {
        --nav-h: 110px;
    }

    .nav-bar-logo img {
        width: min(22vw, 220px);
        height: auto;
    }

    .main-nav a {
        font-size: 1.05rem;
    }

    .slide-text {
        font-size: clamp(1.5rem, 4.2vw, 3rem);
    }

    .about-description p,
    .work-text {
        font-size: 1.25rem;
    }

    .services-footer p {
        font-size: 2.6rem;
    }

    .work-content h2 {
        font-size: 3.2rem;
    }

    .contact-title {
        font-size: 48px;
    }
}

@media (max-width: 900px) {
    :root {
        --nav-h: 92px;
    }

    .nav-container {
        display: grid;
        grid-template-columns: 1fr auto;
        padding: 0 14px;
        align-items: center;
    }

    .nav-bar-logo img {
        width: min(46vw, 170px);
        height: auto;
    }

    .nav-bar-logo {
        grid-column: 1;
        grid-row: 1;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-bg);
        padding: 14px 16px 18px;
        display: none;
        flex-direction: column;
        gap: 14px;
        align-items: flex-start;
        border-top: 1px solid rgba(255, 255, 255, .08);
        z-index: 999;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        font-size: 1rem;
        letter-spacing: .04em;
    }

    .main-nav a::after {
        left: 0;
        transform: none;
        bottom: -4px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        font-size: 1.35rem;
        margin-top: 2px;
    }

    .nav-right {
        display: none;
    }

    .social-nav {
        margin-top: 0;
        gap: 10px;
    }

    .social-nav a {
        font-size: 1.05rem;
    }

    .nav-menu-extra {
        display: none;
        margin-top: 4px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, .08);
    }

    .main-nav.open .nav-menu-extra {
        display: block;
    }

    .main-nav.open .nav-menu-extra .address-nav {
        display: block;
        margin-bottom: 8px;
    }

    .main-nav.open .nav-menu-extra .address-nav p {
        font-size: .78rem;
        white-space: normal;
        line-height: 1.35;
        max-width: 95%;
    }

    .main-nav.open .nav-menu-extra .social-nav {
        display: flex;
        justify-content: flex-start;
        gap: 10px;
        margin-top: 0;
    }

    .main-nav.open .nav-menu-extra .social-nav a {
        font-size: 1.05rem;
    }

    .carousel {
        height: 62vh;
    }

    .carousel-btn {
        font-size: 2.2rem;
    }

    .about {
        padding: 80px 16px 90px;
    }

    .about-logo img {
        width: min(72vw, 300px);
        height: auto;
    }

    .about-description p,
    .about-references li {
        font-size: 1.15rem;
    }

    .work-hero {
        height: 230px;
    }

    .work-content {
        padding: 50px 16px 70px;
    }

    .work-content h2 {
        font-size: 2.4rem;
    }

    .work-content h3 {
        font-size: 1.6rem;
    }

    .work-text {
        font-size: 1.05rem;
        line-height: 1.65;
    }

    .contact {
        padding: 70px 16px;
    }

    .contact-title {
        font-size: 2rem;
    }

    .contact-text {
        font-size: 1rem;
    }

    .contact-subtitle {
        font-size: 2rem;
        margin-top: 36px;
    }

    .contact-form {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .form-group input {
        font-size: 16px;
        padding: 14px 16px;
    }

    .btn-register {
        font-size: 1.15rem;
        padding: 12px 34px;
    }

    .modal {
        top: 0;
        padding: 16px;
    }

    .modal-content {
        width: 100%;
        padding: 28px 20px;
    }

    .modal-title {
        font-size: 1.8rem;
    }

    .modal-text {
        font-size: 1rem;
    }

    .modal-terms {
        font-size: 1.3rem;
    }

    .modal-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .modal-buttons button {
        font-size: 1.15rem;
        padding: 14px;
    }

    .footer {
        height: 140px;
        padding: 36px 14px;
    }

    .footer-logo {
        width: 120px;
    }

    .whatsapp-float {
        right: 14px;
        bottom: 14px;
        padding: 8px;
    }

    .whatsapp-float.whatsapp-stop {
        right: 14px;
        bottom: 14px;
    }

    .whatsapp-float img {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 560px) {
    .slide-content {
        padding: 0 22px;
    }

    .slide-text {
        font-size: 1.45rem;
    }

    .trigger-label h2 {
        font-size: 2rem;
    }

    .services-footer p {
        font-size: 1.7rem;
    }

    .nav-right {
        transform: translateX(-12px);
    }
}