/* ==================== VARIABLES ==================== */
:root {
    --primary: #005a9c;
    --secondary: #009fe3;
    --background-light: #f8fafc;
    --surface-light: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --success: #10b981;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-primary);
    background-color: var(--background-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==================== HEADER ==================== */
#header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    gap: 1rem;
}

.logo {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 70px;
    width: auto;
}

.nav-desktop {
    display: none;
    gap: 1rem;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.nav-desktop.active {
    display: flex;
}

.nav-desktop a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-desktop a:last-child {
    border-bottom: none;
}

.nav-desktop a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-actions .phone-link {
    display: none;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    transition: var(--transition);
}

.phone-link:hover {
    color: var(--primary);
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background: #20ba5a;
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    padding: 0.5rem;
    margin-left: auto;
}

.mobile-menu-btn:hover {
    color: var(--primary);
}

/* ==================== DROPDOWN MENU ==================== */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--border-color);
    padding: 0;
}

.dropdown:hover .dropdown-content {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.dropdown-content a {
    color: var(--text-primary) !important;
    padding: 1rem 1.5rem !important;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid var(--border-color) !important;
    width: 100%;
    text-align: left;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-content a:last-child {
    border-bottom: none !important;
}

.dropdown-content a:hover {
    background-color: var(--background-light);
    color: var(--primary) !important;
    padding-left: 2rem !important;
}

/* Mobile adjustments */
@media (max-width: 799px) {
    .dropdown {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        height: auto;
    }

    .dropdown>a {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        width: 100%;
        display: none;
        opacity: 1;
        transform: none;
        animation: none;
        background: transparent;
    }

    .dropdown:hover .dropdown-content {
        display: flex;
    }

    .dropdown-content a {
        padding: 0.75rem 0 !important;
        border-bottom: 1px dashed var(--border-color) !important;
    }

    .dropdown-content a:hover {
        padding-left: 0.5rem !important;
        background: transparent;
    }
}

/* ==================== HERO SECTION ==================== */
#hero {
    position: relative;
    padding: 2rem 0 5rem;
    overflow: hidden;
    background-image:
        linear-gradient(to right, rgba(0, 90, 156, 0.9) 0%, rgba(0, 90, 156, 0.7) 50%, rgba(0, 90, 156, 0.4) 100%),
        url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (min-width: 800px) {
    #hero {
        background-attachment: fixed;
    }
}

@media (max-width: 799px) {
    #hero {
        background-attachment: scroll;
    }
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-background::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 15rem;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="%23005a9c" fill-opacity="0.3" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"%3E%3C/path%3E%3C/svg%3E');
    background-size: cover;
    background-position: bottom;
    opacity: 1;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 3rem;
    align-items: center;
    grid-template-columns: 1fr;
}

.hero-content {
    text-align: center;
    width: 100%;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
    max-width: 100%;
    width: 100%;
}

@media (min-width: 800px) {
    .hero-description {
        margin-left: 0;
        margin-right: 0;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column !important;
    gap: 1rem;
    margin-bottom: 2.5rem;
    align-items: center;
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    width: 100%;
    max-width: 350px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 25px rgba(0, 90, 156, 0.3);
}

.btn-primary:hover {
    background: #004a82;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 90, 156, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--background-light);
}

.btn-secondary .material-icons {
    font-size: 1rem;
    transition: var(--transition);
}

.btn-secondary:hover .material-icons {
    transform: translateX(4px);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center !important;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.95);
    width: 100%;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.feature-item .material-icons {
    color: #10b981;
    font-size: 1.25rem;
}

.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid white;
    transform: rotate(1deg);
    transition: var(--transition);
}

.image-wrapper:hover {
    transform: rotate(0deg);
}

.image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.expert-card {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.expert-icon {
    background: rgba(0, 90, 156, 0.1);
    padding: 0.75rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.expert-icon .material-icons {
    color: var(--primary);
    font-size: 1.5rem;
}

.expert-info {
    flex: 1;
}

.expert-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.expert-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.expert-phone {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
}

.call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.call-btn:hover {
    background: #004a82;
    transform: scale(1.1);
}

.image-decoration {
    position: absolute;
    top: 2.5rem;
    right: -2.5rem;
    width: 100%;
    height: 100%;
    border: 2px dashed var(--border-color);
    border-radius: 1rem;
    z-index: -1;
}

/* ==================== ABOUT SECTION ==================== */
#nosotros {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    background: var(--surface-light);
}

.about-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.about-background::before {
    content: '';
    position: absolute;
    top: -5rem;
    right: -5rem;
    width: 24rem;
    height: 24rem;
    background: radial-gradient(circle, rgba(224, 242, 254, 0.7) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.about-background::after {
    content: '';
    position: absolute;
    top: 10rem;
    left: -5rem;
    width: 18rem;
    height: 18rem;
    background: radial-gradient(circle, rgba(0, 90, 156, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, 20px);
    }
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.commitment-card {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.commitment-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.commitment-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.commitment-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.commitment-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(0, 90, 156, 0.05);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.commitment-icon .material-icons {
    color: var(--primary);
    font-size: 2rem;
}

.commitment-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.commitment-text {
    color: var(--text-secondary);
    line-height: 1.7;
}

.commitment-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.commitment-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--background-light);
    border-radius: 0.75rem;
}

.commitment-feature .material-icons {
    color: var(--secondary);
    font-size: 1rem;
}

.commitment-feature span:last-child {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.tag {
    padding: 0.5rem 1rem;
    background: rgba(0, 90, 156, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.about-image {
    position: relative;
}

.about-decoration {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 1.5rem;
    transform: rotate(3deg);
    opacity: 0.2;
    transition: var(--transition);
    z-index: -1;
}

.about-image:hover .about-decoration {
    transform: rotate(6deg);
}

.about-image .image-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid white;
    transform: rotate(1deg);
    transition: var(--transition);
}

.about-image .image-wrapper:hover {
    transform: rotate(0deg);
}

.about-image .image-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* ==================== SERVICES SECTION ==================== */
#servicios {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

#servicios::before {
    content: '';
    position: absolute;
    top: -10rem;
    right: -10rem;
    width: 24rem;
    height: 24rem;
    background: radial-gradient(circle, rgba(0, 159, 227, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

#servicios::after {
    content: '';
    position: absolute;
    top: 10rem;
    left: -5rem;
    width: 18rem;
    height: 18rem;
    background: radial-gradient(circle, rgba(0, 90, 156, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-badge {
    display: inline-block;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.text-highlight {
    position: relative;
    color: var(--primary);
    display: inline-block;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background: var(--secondary);
    opacity: 0.2;
    z-index: -1;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 5rem;
}

.service-card {
    position: relative;
    background: var(--surface-light);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

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

.service-card-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
    z-index: 2;
}

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

.service-card-icon {
    position: relative;
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1rem;
}

.service-card-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 90, 156, 0.7), rgba(0, 159, 227, 0.5));
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.service-card:hover .service-card-icon::before {
    opacity: 1;
}

.service-card-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: 0;
}

.service-card:hover .service-card-icon::after {
    transform: scale(1.1);
}

.service-card-icon .material-icons {
    position: relative;
    z-index: 2;
    font-size: 2rem;
    color: white;
    background: rgba(0, 90, 156, 0.9);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.service-card:hover .service-card-icon .material-icons {
    transform: scale(1.2);
    background: white;
    color: var(--primary);
    box-shadow: 0 6px 20px rgba(0, 90, 156, 0.4);
}

.service-card:nth-child(1) .service-card-icon {
    background-image: url('images/persianas-services.jpg');
}

.service-card:nth-child(2) .service-card-icon {
    background-image: url('images/toldos-services.jpg');
}

.service-card:nth-child(3) .service-card-icon {
    background-image: url('images/mosquiteras-services.jpg');
}

.service-card:nth-child(4) .service-card-icon {
    background-image: url('images/estores-services.jpg');
}

.service-card:nth-child(1) .service-card-icon::after {
    background-image: url('images/persianas-services.jpg');
}

.service-card:nth-child(2) .service-card-icon::after {
    background-image: url('images/toldos-services.jpg');
}

.service-card:nth-child(3) .service-card-icon::after {
    background-image: url('images/mosquiteras-services.jpg');
}

.service-card:nth-child(4) .service-card-icon::after {
    background-image: url('images/estores-services.jpg');
}

.service-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.service-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.service-card:hover .service-card-title {
    color: var(--primary);
}

.service-card-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.service-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 90, 156, 0.2);
}

.service-cta:hover {
    background: #004a82;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 90, 156, 0.3);
}

.service-cta .material-icons {
    font-size: 1rem;
    transition: var(--transition);
}

.service-cta:hover .material-icons {
    transform: translateX(4px);
}

/* ==================== CTA BOX ==================== */
.cta-box {
    position: relative;
    background: var(--primary);
    border-radius: 1.5rem;
    padding: 3rem 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.cta-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-background::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20rem;
    height: 20rem;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: translate(25%, -25%);
}

.cta-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20rem;
    height: 20rem;
    background: radial-gradient(circle, rgba(0, 159, 227, 0.3) 0%, transparent 70%);
    transform: translate(-25%, 25%);
}

.cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.cta-title-centered {
    text-align: center;
}

.cta-description {
    text-align: center;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.cta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.cta-action,
.cta-info-item {
    flex: 1;
    display: flex;
    justify-content: center;
}

.cta-info-item {
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.cta-info-item .material-icons {
    color: var(--secondary);
    font-size: 1.25rem;
}

.cta-info-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.cta-info-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.cta-info-link .material-icons {
    color: var(--secondary);
    font-size: 1.25rem;
}

.btn-cta {
    background: white;
    color: var(--primary);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
}

.btn-cta:hover {
    background: var(--background-light);
    transform: scale(1.05);
}

.cta-image {
    position: relative;
}

.cta-decoration {
    position: absolute;
    top: 2.5rem;
    right: -2.5rem;
    width: 100%;
    height: 100%;
    border: 2px dashed var(--border-color);
    border-radius: 1rem;
    z-index: -1;
}

.cta-image-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid white;
    transform: rotate(1deg);
    transition: var(--transition);
}

.cta-image-wrapper:hover {
    transform: rotate(0deg);
}

.cta-image-wrapper img {
    width: 100%;
    height: auto;
}

/* ==================== CONTACT SECTION ==================== */
#contacto {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
}

.contact-background {
    display: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info-card {
    background: var(--surface-light);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    height: 100%;
}

.contact-info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
}

.contact-info-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 90, 156, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-icon .material-icons {
    color: var(--primary);
    font-size: 1.5rem;
}

.contact-info-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact-info-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.contact-info-link {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.contact-info-link:hover {
    color: var(--secondary);
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-call {
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-call:hover {
    background: #004a82;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.contact-form-card {
    background: var(--surface-light);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    scroll-margin-top: 100px;
    /* Offset for sticky header */
}

.contact-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-form-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

.form-group-full {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-input-wrapper {
    position: relative;
}

.form-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.25rem;
    pointer-events: none;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    padding-left: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--background-light);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.875rem;
    transition: var(--transition);
}

.form-select {
    padding-left: 0.75rem;
}

.form-textarea {
    padding-left: 0.75rem;
    resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.1);
}

.btn-submit {
    padding: 1rem;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.form-actions {
    text-align: center;
}

.btn-submit:hover {
    background: #1c7ec2;
    transform: scale(0.98);
}

.btn-submit:active {
    transform: scale(0.95);
}

.form-disclaimer {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.form-link {
    color: var(--primary);
    text-decoration: underline;
}

.form-link:hover {
    color: var(--secondary);
}

/* ==================== FOOTER ==================== */
#footer {
    position: relative;
    background: var(--primary);
    color: white;
    padding-top: 5rem;
    padding-bottom: 2.5rem;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: translateY(-1px);
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin: 2rem 0;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-link {
    display: block;
}

.footer-logo-img {
    height: 70px;
    width: auto;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-links-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 159, 227, 0.5);
    display: inline-block;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: white;
    padding-left: 0.5rem;
}

.footer-link .material-icons {
    font-size: 1rem;
}

.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.footer-contact-item .material-icons {
    color: var(--secondary);
    font-size: 1.25rem;
    margin-top: 0.125rem;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-contact-item a:hover {
    color: white;
}

.footer-schedule-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.btn-footer-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-footer-whatsapp:hover {
    background: white;
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.footer-copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.footer-legal-link {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-legal-link:hover {
    color: white;
}

/* ==================== LEGAL PAGES ==================== */
.legal-page {
    padding: 6rem 0 4rem;
    background: var(--background-light);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--surface-light);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.legal-content h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.legal-updated {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.legal-content h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary);
}

.legal-content h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

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

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
    transition: var(--transition);
}

.legal-content a:hover {
    color: var(--secondary);
}

.cookies-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    box-shadow: var(--shadow-sm);
    border-radius: 0.5rem;
    overflow: hidden;
}

.cookies-table thead {
    background: var(--primary);
    color: white;
}

.cookies-table th,
.cookies-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cookies-table th {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookies-table td {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.cookies-table tbody tr:hover {
    background: var(--background-light);
}

.legal-back {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* ==================== CONTENT & WORKS SECTIONS ==================== */
#contenido,
#trabajos {
    padding: 5rem 0;
}

#contenido {
    background-color: var(--surface-light);
}

#trabajos {
    background-color: var(--background-light);
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.content-wrapper h2 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 2.25rem;
    font-weight: 700;
}

.content-wrapper p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.work-item {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.work-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: #e2e8f0;
    /* Placeholder color */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 3rem;
}

.work-caption {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: center;
    text-align: center;
}

.work-caption .service-cta {
    margin-top: auto;
}

.work-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.work-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ==================== RESPONSIVE ==================== */
@media (min-width: 800px) {
    .nav-desktop {
        display: flex;
        position: static;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
        background: transparent;
    }

    .nav-desktop a {
        padding: 0;
        border-bottom: none;
    }

    .nav-desktop a:hover {
        color: var(--primary);
    }

    .header-actions .phone-link {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .hero-content {
        text-align: left;
        max-width: none;
        width: 100%;
        min-width: 0;
    }

    .hero-image {
        width: 100%;
        min-width: 0;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-description {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    .hero-buttons {
        flex-direction: row;
    }

    .hero-features {
        justify-content: flex-start;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 3rem;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .product-tags {
        justify-content: flex-start;
    }

    .cta-content {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }

    .cta-text {
        flex: 1;
    }

    /*.cta-info {
        justify-content: flex-start;
    }*/

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

    .contact-form {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .cta-title {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .legal-content {
        padding: 4rem;
    }

    .legal-content h1 {
        font-size: 3rem;
    }
}