/* ========================================
   COMERCIALIZADORA NACIONAL BLEARWOOD
   Estilos principales del sitio web
   ======================================== */

/* Variables CSS */
:root {
    --color-gold: #D8CD71;
    --color-gold-light: #DACD71;
    --color-brown: #7C6C53;
    --color-brown-dark: #5E441F;
    --color-brown-darkest: #22140B;
    --color-white: #FFFFFF;
    --color-off-white: #FDFEFF;
    --color-cream: #FFFCF2;
    --color-peach: #FFDEA8;
    --color-coral: #FF6772;
    --color-charcoal: #2D2D2D;
    --color-gray-dark: #3A3A3A;
    --color-gray: #6B6B6B;
    --color-gray-light: #E8E8E8;

    --font-primary: 'Montserrat', sans-serif;
    --font-display: 'Playfair Display', serif;

    --shadow-sm: 0 2px 4px rgba(34, 20, 11, 0.08);
    --shadow-md: 0 4px 12px rgba(34, 20, 11, 0.12);
    --shadow-lg: 0 8px 24px rgba(34, 20, 11, 0.16);
    --shadow-xl: 0 12px 40px rgba(34, 20, 11, 0.2);

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

/* Reset y Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-charcoal);
    background-color: var(--color-cream);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* Tipografía */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-brown-darkest);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-brown) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-brown) 0%, var(--color-brown-dark) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-light {
    background-color: var(--color-white);
    color: var(--color-brown-dark);
    box-shadow: var(--shadow-md);
}

.btn-light:hover {
    background-color: var(--color-gold);
    color: var(--color-brown-darkest);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--color-off-white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo img {
    height: 150px;
    width: auto;
    transition: transform var(--transition-normal);
}

.logo:hover img {
    transform: scale(1.02);
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-brown-dark);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-coral));
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-brown-darkest);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-brown-dark);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

/* ========================================
   HERO CAROUSEL
   ======================================== */
.hero {
    margin-top: 170px;
}

.carousel {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    max-height: 700px;
    overflow: hidden;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(34, 20, 11, 0.75) 0%, rgba(94, 68, 31, 0.6) 100%);
    z-index: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 90%;
    max-width: 800px;
    padding: 40px;
}

.slide-content h1 {
    color: var(--color-white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    color: var(--color-cream);
    font-size: 1.25rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--color-white);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 3;
    backdrop-filter: blur(4px);
}

.carousel-btn:hover {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-brown-darkest);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.carousel-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid var(--color-white);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.carousel-indicators .indicator.active,
.carousel-indicators .indicator:hover {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    transform: scale(1.2);
}

/* ========================================
   INTRO SECTION
   ======================================== */
.intro {
    padding: 100px 0;
    background-color: var(--color-white);
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-peach) 100%);
    color: var(--color-brown-darkest);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.intro-text h2 {
    margin-bottom: 25px;
}

.intro-text p {
    color: var(--color-gray);
    font-size: 1.05rem;
}

.intro-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--color-gray-light);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.intro-image {
    position: relative;
}

.intro-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.intro-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--color-brown-dark) 0%, var(--color-brown-darkest) 100%);
    color: var(--color-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
}

.intro-badge i {
    font-size: 2rem;
    color: var(--color-gold);
}

.intro-badge span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-gray-light) 100%);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    margin-bottom: 15px;
}

.section-header p {
    color: var(--color-gray);
    font-size: 1.1rem;
}

.section-header.light h2 {
    color: var(--color-white);
}

.section-header.light p {
    color: var(--color-cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-white);
    padding: 40px 35px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-coral));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-peach) 100%);
    border-radius: var(--border-radius-md);
    margin-bottom: 25px;
}

.service-icon i {
    font-size: 1.75rem;
    color: var(--color-brown-darkest);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.35rem;
}

.service-card p {
    color: var(--color-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-brown-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-link i {
    transition: transform var(--transition-normal);
}

.service-link:hover {
    color: var(--color-coral);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* ========================================
   WHY US SECTION
   ======================================== */
.why-us {
    padding: 100px 0;
    background-color: var(--color-white);
}

.why-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-us-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.why-us-text h2 {
    margin-bottom: 35px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--color-gold);
}

.feature-content h4 {
    margin-bottom: 5px;
    color: var(--color-brown-darkest);
}

.feature-content p {
    color: var(--color-gray);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-brown-darkest) 0%, var(--color-brown-dark) 100%);
}

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

.about-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 45px 35px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.about-card:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
}

.about-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-peach) 100%);
    border-radius: 50%;
    margin: 0 auto 25px;
}

.about-icon i {
    font-size: 2rem;
    color: var(--color-brown-darkest);
}

.about-card h3 {
    color: var(--color-white);
    margin-bottom: 15px;
}

.about-card p {
    color: var(--color-cream);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   CTA BANNER
   ======================================== */
.cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-coral) 0%, #e55560 100%);
    position: relative;
    overflow: hidden;
}

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

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

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

.cta-content h2 {
    color: var(--color-white);
    margin-bottom: 15px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    margin-bottom: 30px;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    padding: 100px 0;
    background-color: var(--color-gray-dark);
}

.contact .section-header h2 {
    color: var(--color-white);
}

.contact .section-header p {
    color: var(--color-gray-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.info-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.info-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-peach) 100%);
    border-radius: var(--border-radius-sm);
}

.info-icon i {
    font-size: 1.25rem;
    color: var(--color-brown-darkest);
}

.info-text h4 {
    color: var(--color-white);
    margin-bottom: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
}

.info-text p {
    color: var(--color-gray-light);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.info-text a {
    color: var(--color-gold);
}

.info-text a:hover {
    color: var(--color-peach);
}

/* Contact Form */
.contact-form-container {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-brown-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    font-family: var(--font-primary);
    font-size: 1rem;
    border: 2px solid var(--color-gray-light);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
    background-color: var(--color-cream);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    background-color: var(--color-white);
    box-shadow: 0 0 0 4px rgba(216, 205, 113, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--color-gold);
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-group a {
    color: var(--color-coral);
    text-decoration: underline;
}

.checkbox-group a:hover {
    color: var(--color-brown-dark);
}

/* Map */
.map-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-container iframe {
    display: block;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background-color: var(--color-brown-darkest);
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 20px;
    border-radius: var(--border-radius-sm);
}

.footer-slogan {
    color: var(--color-gold);
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 25px;
}

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

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

.footer-social a:hover {
    background-color: var(--color-gold);
    color: var(--color-brown-darkest);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--color-gray-light);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

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

.footer-bottom {
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--color-gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ========================================
   MODALS
   ======================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(34, 20, 11, 0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    padding: 20px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    transform: translateY(30px);
    transition: transform var(--transition-normal);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--color-brown-dark) 0%, var(--color-brown-darkest) 100%);
}

.modal-header h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin: 0;
}

.modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background-color: var(--color-coral);
    border-color: var(--color-coral);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(85vh - 90px);
}

.modal-body h4 {
    color: var(--color-brown-dark);
    margin: 25px 0 15px;
    font-size: 1.1rem;
}

.modal-body h4:first-child {
    margin-top: 0;
}

.modal-body p {
    color: var(--color-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.modal-body ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.modal-body li {
    color: var(--color-gray);
    font-size: 0.95rem;
    margin-bottom: 8px;
    list-style: disc;
}

/* ========================================
   SCROLL TOP BUTTON
   ======================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-brown) 100%);
    border: none;
    border-radius: 50%;
    color: var(--color-white);
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 900;
    box-shadow: var(--shadow-lg);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: linear-gradient(135deg, var(--color-coral) 0%, #e55560 100%);
    transform: translateY(-3px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {

    .intro-content,
    .why-us-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .intro-image {
        order: -1;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--color-off-white);
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-normal);
        padding: 100px 30px 30px;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 25px;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero {
        margin-top: 170px;
    }

    .carousel {
        height: 60vh;
        min-height: 450px;
    }

    .slide-content {
        padding: 30px 20px;
    }

    .intro-stats {
        flex-wrap: wrap;
        gap: 30px;
    }

    .stat {
        flex: 1 1 40%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links h4 {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 100px;
    }

    .hero {
        margin-top: 120px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .section-tag {
        font-size: 0.75rem;
        padding: 6px 15px;
    }

    .intro,
    .services,
    .why-us,
    .about,
    .contact {
        padding: 60px 0;
    }

    .contact-form-container {
        padding: 25px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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