@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #74142D;
    --primary-dark: #530F11;
    --secondary: #C9A84C;
    --secondary-light: #F4BE88;
    --accent: #C23B6B;
    --bg: #FDF6F0;
    --bg-alt: #F8EDEB;
    --text: #2C1F2E;
    --text-light: #6B4E5A;
    --white: #FFFFFF;
    --font: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.7;
}

.navbar-custom {
    background: var(--white);
    padding: 0.75rem 0;
    box-shadow: 0 4px 0 rgba(116, 20, 45, 0.08);
    border-bottom: 3px solid var(--primary);
}

.navbar-brand img {
    height: 56px;
    width: auto;
}

.nav-link-custom {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text) !important;
    padding: 0.5rem 1.1rem !important;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link-custom:hover {
    color: var(--primary) !important;
    background: var(--bg-alt);
}

.btn-nav-primary {
    background: var(--primary);
    color: var(--white) !important;
    border-radius: 50px;
    padding: 0.5rem 1.4rem !important;
    font-weight: 600;
    font-size: 0.85rem;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
}

.btn-nav-primary:hover {
    background: var(--white);
    color: var(--primary) !important;
}

.btn-nav-outline {
    background: var(--white);
    color: var(--primary) !important;
    border-radius: 50px;
    padding: 0.5rem 1.4rem !important;
    font-weight: 600;
    font-size: 0.85rem;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
}

.btn-nav-outline:hover {
    background: var(--primary);
    color: var(--white) !important;
}

.hero {
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: var(--secondary);
    opacity: 0.15;
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 350px;
    height: 350px;
    background: var(--accent);
    opacity: 0.1;
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--secondary);
    display: block;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.hero-text {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 520px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.btn-flat-primary {
    background: var(--primary);
    color: var(--white);
    border: 3px solid var(--primary);
    border-radius: 50px;
    padding: 1rem 2.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-flat-primary:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 0 rgba(116, 20, 45, 0.15);
}

.btn-flat-secondary {
    background: var(--white);
    color: var(--primary);
    border: 3px solid var(--primary);
    border-radius: 50px;
    padding: 1rem 2.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-flat-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 0 rgba(116, 20, 45, 0.15);
}

.hero-img-wrap {
    position: relative;
    z-index: 2;
}

.hero-img-wrap img {
    width: 100%;
    max-width: 480px;
    border-radius: 30px;
    object-fit: cover;
    aspect-ratio: 4/5;
}

.hero-img-shape {
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background: var(--secondary);
    border-radius: 30px;
    z-index: -1;
    opacity: 0.3;
}

.section-flat {
    padding: 6rem 0;
    position: relative;
}

.section-flat-alt {
    background: var(--white);
    padding: 6rem 0;
    position: relative;
}

.section-tag {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 2rem;
}

.section-text {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.section-text strong {
    color: var(--primary);
    font-weight: 600;
}

.img-flat {
    width: 100%;
    border-radius: 24px;
    object-fit: cover;
    aspect-ratio: 4/3;
    box-shadow: 0 0 0 4px var(--primary), 0 0 0 8px var(--secondary);
}

.img-flat-tall {
    aspect-ratio: 3/4;
}

.card-flat {
    background: var(--white);
    border-radius: 24px;
    padding: 2.2rem;
    height: 100%;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-flat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--primary);
    transition: height 0.3s ease;
}

.card-flat:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 12px 0 rgba(116, 20, 45, 0.08);
}

.card-flat:hover::before {
    height: 100%;
    opacity: 0.05;
}

.card-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-alt);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.card-flat:hover .card-icon {
    background: var(--primary);
}

.card-icon i {
    font-size: 1.8rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.card-flat:hover .card-icon i {
    color: var(--white);
}

.card-flat h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.card-flat p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: var(--bg);
    border-radius: 16px;
    margin-bottom: 1rem;
    border-left: 5px solid var(--primary);
    transition: all 0.3s ease;
}

.contacto-item:hover {
    background: var(--primary);
    transform: translateX(8px);
}

.contacto-item:hover i,
.contacto-item:hover span,
.contacto-item:hover strong {
    color: var(--white);
}

.contacto-item i {
    font-size: 1.5rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.contacto-item span {
    font-size: 0.95rem;
    color: var(--text);
    transition: color 0.3s ease;
}

.contacto-item strong {
    color: var(--primary);
    transition: color 0.3s ease;
}

.footer-flat {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
    border-top: 6px solid var(--secondary);
}

.footer-flat h5 {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-flat a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-flat a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 3rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.shape-circle {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: var(--secondary);
    opacity: 0.12;
    top: 10%;
    right: 5%;
}

.shape-2 {
    width: 120px;
    height: 120px;
    background: var(--accent);
    opacity: 0.1;
    bottom: 15%;
    left: 3%;
}

.shape-3 {
    width: 80px;
    height: 80px;
    background: var(--primary);
    opacity: 0.08;
    top: 40%;
    left: 8%;
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.6rem;
    }
    .section-title {
        font-size: 1.9rem;
    }
    .hero-img-wrap img {
        max-width: 100%;
        aspect-ratio: 16/9;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .btn-flat-primary,
    .btn-flat-secondary {
        padding: 0.8rem 1.6rem;
        font-size: 0.85rem;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
