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

body {
    font-family: 'Nunito', sans-serif;
    background-color: #ffffff;
    color: #3d3935;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body.modal-open {
    overflow: hidden;
    height: 100vh;
}

.navbar {
    background: white;
    padding: 15px 0;
    border-bottom: 2px solid #3d3935;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo,
.nav-links a {
    font-family: 'Fredoka One', cursive;
    color: #3d3935;
    text-decoration: none;
}

.nav-links a {
    margin-left: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.hero-container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

.hero-card {
    height: 50vh;
    background: url('assets/hero.jpg') center/cover no-repeat;
    border-radius: 40px;
    border: 2px solid #3d3935;
    box-shadow: 4px 4px 0px #3d3935;
}

.intro-section {
    max-width: 850px;
    margin: 40px auto;
    padding: 0 20px;
}

.intro-box {
    background: #eef6f9;
    padding: 35px;
    border-radius: 35px;
    border: 2px solid #3d3935;
    box-shadow: 4px 4px 0px #3d3935;
    text-align: center;
}

.intro-box p {
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 800;
    margin-bottom: 20px;
}

.btn-contacto {
    display: inline-block;
    padding: 12px 25px;
    border: 2px solid #3d3935;
    border-radius: 15px;
    color: #3d3935;
    text-decoration: none;
    font-family: 'Fredoka One', cursive;
    font-size: 0.9rem;
    background: white;
    transition: 0.2s;
}

.btn-contacto:hover {
    background: #3d3935;
    color: white;
    transform: translateY(-2px);
}

.container {
    max-width: 1200px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

.section-title {
    font-family: 'Fredoka One', cursive;
    text-align: center;
    font-size: 2.8rem;
    margin: 60px 0 30px;
}

.section-spacing {
    margin-top: 80px !important;
}

.grid-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
}

.card {
    background: white;
    border-radius: 25px;
    border: 2px solid #3d3935;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 4px 4px 0px #3d3935;
    transition: 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #eef6f9;
}

.card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid #3d3935;
}

.card-content {
    padding: 15px;
    text-align: center;
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 20000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 650px;
    border-radius: 35px;
    border: 2px solid #3d3935;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 50px;
    cursor: pointer;
    color: #3d3935;
    font-family: Arial;
    font-weight: bold;
    z-index: 100;
}

.modal-header-img {
    height: 280px;
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid #3d3935;
}

.modal-body {
    padding: 35px;
    text-align: left;
}

.modal-body h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #3d3935;
}

.main-footer {
    background: white;
    padding: 50px 20px;
    border-top: 2px solid #3d3935;
    text-align: center;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: white;
    border: 2px solid #3d3935;
    border-radius: 50%;
    margin: 0 8px;
    color: #3d3935;
    font-size: 1.2rem;
    box-shadow: 3px 3px 0px #3d3935;
    text-decoration: none;
}

.legal-links span {
    margin: 0 10px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .grid-container {
        grid-template-columns: 1fr !important;
    }
}