:root {
    --color-guinda: #8b1e23;
    --color-guinda-light: #a82a30;
    --color-guinda-dark: #6a171b;
    --color-white: #ffffff;
    --color-cream: #faf8f5;
    --color-gray: #f0eeeb;
    --color-text: #2d2d2d;
    --color-text-light: #666666;
    --shadow-soft: 0 8px 32px rgba(139, 30, 35, 0.12);
    --shadow-hover: 0 20px 60px rgba(139, 30, 35, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--color-cream);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Navegación flotante inferior tipo pill */
.nav-float {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 12px 30px;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 35px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-float:hover {
    box-shadow: var(--shadow-hover);
    transform: translateX(-50%) translateY(-3px);
}

.nav-logo {
    height: 38px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--color-guinda);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    z-index: -1;
}

.nav-links a:hover::before {
    width: 100%;
    height: 100%;
    border-radius: 25px;
}

.nav-links a:hover {
    color: var(--color-white);
}

.nav-social {
    display: flex;
    gap: 12px;
    padding-left: 20px;
    border-left: 1px solid rgba(139, 30, 35, 0.2);
}

.nav-social a {
    width: 40px;
    height: 40px;
    background: var(--color-guinda);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-social a:hover {
    background: var(--color-guinda-dark);
    transform: scale(1.1) rotate(5deg);
}

/* Hero Section con diagonal */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../imagenes/hero.png') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 30, 35, 0.88) 0%, rgba(139, 30, 35, 0.6) 40%, rgba(45, 45, 45, 0.4) 100%);
}

.hero-diagonal {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: var(--color-cream);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 0 180px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 25px;
    border-radius: 50px;
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 35px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    animation: float 3s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.05;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.hero-title span {
    display: block;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 550px;
    margin-bottom: 45px;
    line-height: 1.8;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--color-white);
    color: var(--color-guinda);
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--color-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-guinda);
    transform: translateY(-3px);
}

/* Secciones con fondo diagonal */
.section-diagonal {
    position: relative;
    padding: 120px 0;
}

.section-diagonal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-gray) 100%);
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    z-index: -1;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-guinda);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    padding: 10px 25px;
    background: rgba(139, 30, 35, 0.08);
    border-radius: 50px;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.2;
    letter-spacing: -1px;
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 25px;
}

.bento-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-soft);
}

.bento-card:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: var(--shadow-hover);
}

.bento-card.large {
    grid-column: span 7;
    grid-row: span 2;
}

.bento-card.medium {
    grid-column: span 5;
}

.bento-card.small {
    grid-column: span 5;
}

.bento-card.full {
    grid-column: span 12;
}

.bento-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.bento-card:hover .bento-image {
    transform: scale(1.05);
}

.bento-image.small-img {
    height: 180px;
}

.bento-content {
    padding: 30px;
}

.bento-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 18px;
    line-height: 1.3;
}

.bento-content p {
    font-size: 1.05rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.bento-highlight {
    background: linear-gradient(135deg, var(--color-guinda) 0%, var(--color-guinda-light) 100%);
    color: var(--color-white);
    padding: 20px 25px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 1rem;
    margin: 25px 0;
    position: relative;
    overflow: hidden;
}

.bento-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* Stats en grid */
.stats-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(139, 30, 35, 0.05);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(139, 30, 35, 0.1);
    transform: scale(1.05);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-guinda);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 8px;
    font-weight: 500;
}

/* Lista con iconos */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    font-size: 1rem;
    color: var(--color-text);
}

.feature-list li .material-icons {
    color: var(--color-guinda);
    font-size: 24px;
    background: rgba(139, 30, 35, 0.1);
    padding: 5px;
    border-radius: 8px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-guinda) 0%, var(--color-guinda-dark) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 25px;
}

.cta-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 45px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer-custom {
    background: var(--color-text);
    padding: 70px 0 30px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand img {
    height: 55px;
    margin-bottom: 25px;
    filter: invert(100%);
}

.footer-brand p {
    font-size: 1rem;
    line-height: 1.9;
    max-width: 320px;
}

.footer-title {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--color-guinda);
    transform: translateY(-3px) rotate(10deg);
}

/* Animaciones */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 991px) {
    .nav-float {
        width: 95%;
        padding: 10px 20px;
        gap: 15px;
    }
    
    .nav-links {
        display: none;
    }
    
    .bento-card.large,
    .bento-card.medium,
    .bento-card.small {
        grid-column: span 12;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .stats-bento {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}
