@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --pink: #e615bc;
    --pink-light: #ff4bd1;
    --pink-dark: #b80b96;
    --black: #090909;
    --dark: #111111;
    --grey-dark: #1c1c1c;
    --grey: #777;
    --grey-light: #e8e8e8;
    --white: #ffffff;
    --off-white: #f7f7f7;
    --border: rgba(0, 0, 0, 0.10);

    --font-main: 'DM Sans', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;

    --container: 1280px;
}


/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--black);
    background: var(--white);
    overflow-x: hidden;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}


/* CONTAINER */

.container {
    width: min(100% - 50px, var(--container));
    margin: 0 auto;
}


/* HEADER */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-container {
    height: 95px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    width: 125px;
    height: auto;
}

.nav {
    display: flex;
    gap: 38px;
    align-items: center;
}

.nav-link {
    position: relative;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--pink);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--pink);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}


/* HERO */

.hero {
    min-height: 100vh;
    padding-top: 95px;
    position: relative;
    overflow: hidden;
    background: var(--off-white);
}

.hero-background {
    position: absolute;
    width: 650px;
    height: 650px;
    right: -150px;
    top: 50%;
    transform: translateY(-50%);
    background: radial-gradient(
        circle,
        rgba(230, 21, 188, 0.18) 0%,
        rgba(230, 21, 188, 0.06) 45%,
        transparent 70%
    );
    pointer-events: none;
}

.hero-container {
    min-height: calc(100vh - 95px);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 60px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-block;
    color: var(--pink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(58px, 7vw, 100px);
    line-height: 0.95;
    letter-spacing: -5px;
    margin-bottom: 35px;
}

.hero h1 span {
    color: var(--pink);
}

.hero-content > p {
    max-width: 580px;
    color: #555;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}


/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    color: white;
    background: var(--pink);
}

.btn-primary:hover {
    background: var(--pink-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: #222;
    background: transparent;
}

.btn-outline:hover {
    background: var(--black);
    color: white;
}


/* CUBE */

.cube-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.cube-scene {
    width: 240px;
    height: 240px;
    perspective: 900px;
}

.cube {
    width: 240px;
    height: 240px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 16s infinite linear;
}

.cube-face {
    position: absolute;
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid var(--pink);
    box-shadow: 0 0 35px rgba(230, 21, 188, 0.10);
}

.cube-face img {
    width: 75%;
    height: 75%;
    object-fit: contain;
}

.front {
    transform: translateZ(120px);
}

.back {
    transform: rotateY(180deg) translateZ(120px);
}

.right {
    transform: rotateY(90deg) translateZ(120px);
}

.left {
    transform: rotateY(-90deg) translateZ(120px);
}

.top {
    transform: rotateX(90deg) translateZ(120px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(120px);
}

@keyframes rotateCube {

    0% {
        transform: rotateX(-15deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(-15deg) rotateY(360deg);
    }
}


/* MARQUEE */

.marquee-section {
    background: var(--black);
    color: white;
    overflow: hidden;
    padding: 20px 0;
}

.marquee {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee span {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    white-space: nowrap;
}

.marquee i {
    color: var(--pink);
    font-style: normal;
    margin: 0 28px;
}

@keyframes marquee {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


/* SECTIONS */

.section {
    padding: 150px 0;
}

.section-header {
    max-width: 850px;
    margin-bottom: 80px;
}

.section-number {
    display: block;
    color: var(--pink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 22px;
}

.section-header h2,
.about-content h2,
.contact-intro h2 {
    font-family: var(--font-display);
    font-size: clamp(45px, 6vw, 75px);
    line-height: 0.98;
    letter-spacing: -3px;
    margin-bottom: 28px;
}

.section-header h2 span,
.about-content h2 span,
.contact-intro h2 span {
    color: var(--pink);
}

.section-header p {
    max-width: 650px;
    color: #666;
    line-height: 1.7;
    font-size: 17px;
}


/* SERVICES */

.services-section {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.service-card {
    min-height: 350px;
    padding: 35px;
    background: #f5f5f5;
    position: relative;
    transition: all 0.35s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: rgba(230, 21, 188, 0.35);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.service-card-dark {
    background: var(--black);
    color: white;
}

.service-card-dark:hover {
    border-color: var(--pink);
}

.service-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 65px;
    color: var(--pink);
    font-size: 13px;
    font-weight: 700;
}

.service-icon {
    font-size: 27px;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 31px;
    line-height: 1.1;
    margin-bottom: 18px;
    letter-spacing: -1px;
}

.service-card p {
    color: #666;
    line-height: 1.7;
    max-width: 520px;
    overflow-wrap: break-word;
    word-break: normal;
}

.service-card-dark p {
    color: #aaa;
}

.service-tag {
    position: absolute;
    left: 35px;
    bottom: 32px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--pink);
    line-height: 1.4;
}

.card-link {
    display: inline-block;
    margin-top: 25px;
    color: var(--pink);
    font-weight: 700;
}


/* NOTICIAS */

.news-section {
    background: white;
}

.news-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--off-white);
    overflow: hidden;
}

.news-image {
    min-height: 500px;
    background: #eeeeee;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-feature:hover .news-image img {
    transform: scale(1.03);
}

.news-content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-label {
    display: inline-block;
    color: var(--pink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 22px;
}

.news-content h3 {
    font-family: var(--font-display);
    font-size: clamp(35px, 4vw, 55px);
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 25px;
}

.news-content > p {
    color: #666;
    line-height: 1.7;
    font-size: 16px;
    max-width: 520px;
    margin-bottom: 35px;
}

.news-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-item {
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.news-item:last-child {
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.news-item span {
    display: block;
    color: var(--pink);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 7px;
}

.news-item p {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}


/* ABOUT */

.about-section {
    background: var(--off-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 100px;
    align-items: center;
}

.about-image {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-logo-wrapper {
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-logo-wrapper img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.about-location {
    margin-top: 35px;
    color: var(--pink);
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
}

.about-content h2 {
    margin-bottom: 35px;
}

.about-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 18px;
    font-size: 16px;
}

.about-lead {
    color: #222 !important;
    font-size: 21px !important;
    line-height: 1.6 !important;
}

.about-signature {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    display: flex;
    gap: 15px;
    align-items: center;
}

.about-signature strong {
    font-family: var(--font-display);
    font-size: 19px;
}

.about-signature span {
    color: var(--pink);
    font-size: 12px;
    font-weight: 700;
}


/* CONTACT */

.contact-section {
    background: var(--black);
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 100px;
}

.contact-intro h2 {
    margin-bottom: 30px;
}

.contact-intro > p {
    color: #aaa;
    line-height: 1.7;
    max-width: 450px;
}

.contact-info {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-info-item > span {
    display: block;
    color: var(--pink);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 7px;
}

.contact-info-item a,
.contact-info-item p {
    color: #ddd;
    font-size: 16px;
}

.contact-info-item a:hover {
    color: var(--pink);
}


/* FORM */

.contact-form-wrapper {
    background: white;
    color: var(--black);
    padding: 45px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 23px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.form-group label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    border: 1px solid #ddd;
    background: #fafafa;
    padding: 15px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--pink);
}

.privacy-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.privacy-check input {
    margin-top: 3px;
    accent-color: var(--pink);
}

.inline-link {
    border: 0;
    background: transparent;
    color: var(--pink);
    cursor: pointer;
    text-decoration: underline;
}

.form-submit {
    width: 100%;
}


/* FOOTER */

.footer {
    background: #050505;
    color: white;
    padding: 55px 0;
    border-top: 1px solid #222;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.footer-logo {
    width: 105px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: #777;
    font-size: 13px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links button {
    background: none;
    border: 0;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-links button:hover {
    color: var(--pink);
}

.footer-copy {
    text-align: right;
}

.footer-copy p {
    color: #666;
    font-size: 11px;
    margin-bottom: 7px;
}

.footer-copy p:first-child {
    color: var(--pink);
    font-weight: 700;
}


/* MODALES */

.modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    z-index: 2;
    background: white;
    color: var(--black);
    width: min(850px, 100%);
    max-height: 85vh;
    overflow-y: auto;
    padding: 55px;
}

.modal-close {
    position: absolute;
    right: 25px;
    top: 20px;
    width: 40px;
    height: 40px;
    border: 0;
    background: #f1f1f1;
    border-radius: 50%;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

.modal-content h2 {
    font-family: var(--font-display);
    font-size: 50px;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 45px;
}

.modal-content h2 span {
    color: var(--pink);
}

.modal-text h3 {
    font-size: 17px;
    margin: 28px 0 10px;
}

.modal-text p {
    color: #555;
    line-height: 1.7;
    font-size: 14px;
}


/* COOKIE SETTINGS */

.cookie-options {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.cookie-option {
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.cookie-option h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.cookie-option p {
    color: #777;
    font-size: 13px;
    line-height: 1.5;
}

.cookie-required {
    white-space: nowrap;
    color: var(--pink);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}


/* SWITCH */

.switch {
    position: relative;
    width: 48px;
    height: 25px;
    flex-shrink: 0;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
}

.slider::before {
    content: "";
    position: absolute;
    width: 19px;
    height: 19px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.switch input:checked + .slider {
    background: var(--pink);
}

.switch input:checked + .slider::before {
    transform: translateX(23px);
}


/* COOKIE BANNER */

.cookie-banner {
    position: fixed;
    z-index: 2500;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1100px, calc(100% - 30px));
    padding: 22px 25px;
    background: white;
    color: var(--black);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.18);
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner-text strong {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.cookie-banner-text p {
    color: #777;
    font-size: 12px;
    line-height: 1.5;
}

.cookie-banner-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-btn {
    border: 1px solid #ddd;
    background: white;
    padding: 11px 16px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.cookie-btn-primary {
    background: var(--pink);
    border-color: var(--pink);
    color: white;
}


/* REVEAL */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

    .hero-container,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-container {
        padding: 80px 0;
        text-align: center;
    }

    .hero-content > p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .cube-wrapper {
        min-height: 350px;
    }

    .about-grid,
    .contact-grid {
        gap: 60px;
    }

    .about-image {
        order: 2;
    }

    .news-feature {
        grid-template-columns: 1fr;
    }

    .news-image,
    .news-image img {
        min-height: 400px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-copy {
        text-align: center;
    }

    .footer-links {
        order: 2;
    }

    .footer-copy {
        order: 3;
    }
}


/* =========================================
   MÓVIL
========================================= */

@media (max-width: 700px) {

    .container {
        width: min(100% - 30px, var(--container));
    }

    .nav-container {
        height: 80px;
    }

    .header-logo {
        width: 105px;
    }

    .nav {
        gap: 15px;
    }

    .nav-link {
        font-size: 11px;
    }

    .hero {
        padding-top: 80px;
    }

    .hero-container {
        min-height: auto;
        padding: 90px 0 80px;
    }

    .hero h1 {
        font-size: 58px;
        letter-spacing: -3px;
    }

    .cube-scene,
    .cube,
    .cube-face {
        width: 190px;
        height: 190px;
    }

    .front {
        transform: translateZ(95px);
    }

    .back {
        transform: rotateY(180deg) translateZ(95px);
    }

    .right {
        transform: rotateY(90deg) translateZ(95px);
    }

    .left {
        transform: rotateY(-90deg) translateZ(95px);
    }

    .top {
        transform: rotateX(90deg) translateZ(95px);
    }

    .bottom {
        transform: rotateX(-90deg) translateZ(95px);
    }

    .section {
        padding: 100px 0;
    }


    /* TARJETAS DE SERVICIOS CORREGIDAS */

    .services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .service-card {
        min-height: 320px;
        padding: 25px;
        overflow: hidden;
    }

    .service-top {
        margin-bottom: 45px;
    }

    .service-card h3 {
        font-size: 27px;
        line-height: 1.15;
        letter-spacing: -0.5px;
        overflow-wrap: break-word;
        word-break: normal;
        hyphens: auto;
    }

    .service-card p {
        font-size: 15px;
        line-height: 1.65;
        overflow-wrap: break-word;
        word-break: normal;
        hyphens: auto;
    }

    .service-tag {
        position: relative;
        left: auto;
        bottom: auto;
        display: block;
        margin-top: 30px;
        line-height: 1.4;
        overflow-wrap: break-word;
    }


    /* NOTICIAS */

    .news-image,
    .news-image img {
        min-height: 300px;
    }

    .news-content {
        padding: 35px 25px;
    }

    .news-content h3 {
        font-size: 36px;
        letter-spacing: -1.5px;
    }

    .news-content > p {
        font-size: 15px;
    }


    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 25px;
    }

    .modal-content {
        padding: 40px 25px;
    }

    .modal-content h2 {
        font-size: 38px;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .cookie-banner-buttons {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .cookie-btn {
        padding: 11px 5px;
    }
}


/* =========================================
   MÓVILES PEQUEÑOS
========================================= */

@media (max-width: 430px) {

    .nav {
        gap: 9px;
    }

    .nav-link {
        font-size: 10px;
    }

    .hero h1 {
        font-size: 49px;
    }

    .cube-scene,
    .cube,
    .cube-face {
        width: 160px;
        height: 160px;
    }

    .front {
        transform: translateZ(80px);
    }

    .back {
        transform: rotateY(180deg) translateZ(80px);
    }

    .right {
        transform: rotateY(90deg) translateZ(80px);
    }

    .left {
        transform: rotateY(-90deg) translateZ(80px);
    }

    .top {
        transform: rotateX(90deg) translateZ(80px);
    }

    .bottom {
        transform: rotateX(-90deg) translateZ(80px);
    }

    .service-card {
        padding: 23px;
        min-height: 0;
    }

    .service-card h3 {
        font-size: 25px;
        line-height: 1.15;
    }

    .service-card p {
        font-size: 14px;
        line-height: 1.65;
    }

    .service-tag {
        margin-top: 25px;
        font-size: 9px;
    }

    .news-image,
    .news-image img {
        min-height: 240px;
    }

    .news-content {
        padding: 30px 23px;
    }

    .news-content h3 {
        font-size: 32px;
    }

    .about-logo-wrapper {
        width: 200px;
        height: 200px;
    }
}