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

:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --light-blue: #dbeafe;
    --dark-blue: #1e40af;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --gray-light: #f3f4f6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Fondo para index.html */
body.index-page {
    background-color: var(--primary-blue);
    background-image: url('../img/fondo/fondo_toldos_prueba.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
}

@media (max-width: 768px) {
    body.index-page {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
    }
}

body.index-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(30, 58, 138, 0.05), rgba(30, 58, 138, 0.15));
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    body.index-page::before {
        position: absolute;
        background: linear-gradient(to bottom, rgba(30, 58, 138, 0.05), rgba(30, 58, 138, 0.12));
    }
}

body.index-page main {
    position: relative;
    z-index: 1;
}

body.index-page header {
    position: relative;
    z-index: 2;
}

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

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

body.index-page header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo img {
    height: 80px;
    width: auto;
}

.header-instagram img,
.header-facebook img,
.header-whatsapp img {
    height: 32px;
    width: auto;
    display: block;
}

.menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
    position: relative;
}

.menu a:hover,
.menu a.active {
    color: var(--primary-blue);
}

.menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-blue);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(59, 130, 246, 0.85) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    backdrop-filter: blur(2px);
}

body.index-page .hero {
    background: rgba(30, 58, 138, 0.3);
    backdrop-filter: blur(1px);
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8), 1px 1px 3px rgba(0, 0, 0, 0.9);
    color: var(--white);
}

body.index-page .hero h1 {
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9), 2px 2px 6px rgba(0, 0, 0, 1);
}

.hero p {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 1px 1px 4px rgba(0, 0, 0, 0.9);
    color: var(--white);
    font-weight: 500;
}

body.index-page .hero p {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9), 1px 1px 5px rgba(0, 0, 0, 1);
}

.hero p strong {
    color: var(--white);
    font-weight: 700;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.9), 2px 2px 6px rgba(0, 0, 0, 1);
}

.hero-buttons {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--light-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: rgba(243, 244, 246, 0.95);
    backdrop-filter: blur(5px);
}

body.index-page .services {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(3px);
}

.services h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--primary-blue);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

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

.service-card {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(3px);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(30, 58, 138, 0.2);
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-color: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-icon img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.service-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.service-card p {
    color: var(--text-dark);
    line-height: 1.7;
}

/* Why Us Section */
.why-us {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(3px);
}

.why-us h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--primary-blue);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

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

.why-card {
    text-align: center;
    padding: 30px;
}

.why-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
}

.why-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.why-card p {
    color: var(--text-dark);
    line-height: 1.7;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(59, 130, 246, 0.9) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    backdrop-filter: blur(3px);
}

body.index-page .cta {
    background: rgba(30, 58, 138, 0.4);
    backdrop-filter: blur(2px);
}

.cta h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5em;
}

/* About Content */
.about-content {
    padding: 60px 0;
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
}

.about-text h2 {
    color: var(--primary-blue);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 2em;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-dark);
}

.about-text ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.about-text li {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Works Content */
.works-content {
    padding: 60px 0;
}

.intro-text {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 50px;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0 15px;
}

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

.work-item {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(3px);
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(30, 58, 138, 0.2);
}

.work-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: var(--gray-light);
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-info {
    padding: 20px;
}

.work-info h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.work-info p {
    color: var(--text-light);
}

/* Contact Content - 4 bloques responsive */
.contact-content {
    padding: 40px 0 60px;
}

.contact-blocks {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-block {
    background: var(--white);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-block:hover {
    border-color: var(--secondary-blue);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.contact-block-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
}

.contact-block-icon:hover {
    opacity: 0.85;
}

.contact-block-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.contact-block h2 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}

.contact-block-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 14px;
    line-height: 1.5;
}

.contact-block-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-block-list li {
    margin-bottom: 6px;
}

.contact-block-list li:last-child {
    margin-bottom: 0;
}

.contact-block-list a,
.contact-block-email a {
    color: var(--secondary-blue);
    text-decoration: none;
    word-break: break-all;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-block-list a:hover,
.contact-block-email a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.contact-block-email {
    margin: 0;
    line-height: 1.5;
}

.contact-block-email a {
    white-space: nowrap;
}

@media (max-width: 480px) {
    .contact-block-email a {
        white-space: normal;
        word-break: break-all;
    }
}

/* Tablet: 2 columnas */
@media (min-width: 600px) {
    .contact-blocks {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

/* Desktop: 3 columnas en fila, tarjetas más anchas */
@media (min-width: 900px) {
    .contact-content {
        padding: 60px 0;
    }
    .contact-blocks {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
        max-width: 1200px;
    }
}

/* Footer */
footer {
    background-color: rgba(31, 41, 55, 0.98);
    color: var(--white);
    padding: 50px 0 20px;
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--secondary-blue);
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-tel {
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
}

.footer-tel .footer-phone,
.footer-phone {
    height: 20px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.footer-whatsapp {
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
}

.footer-whatsapp img {
    height: 20px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.footer-section .social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.footer-section .social-links a img {
    height: 20px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    body.index-page {
        background-attachment: scroll;
    }

    body.index-page::before {
        background: linear-gradient(to bottom, rgba(30, 58, 138, 0.05), rgba(30, 58, 138, 0.12));
    }

    .menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .menu.active {
        max-height: 300px;
    }

    .menu ul {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }

    .menu li {
        border-bottom: 1px solid var(--gray-light);
    }

    .menu li:last-child {
        border-bottom: none;
    }

    .menu a {
        display: block;
        padding: 15px 0;
        font-size: 18px;
    }

    .menu-toggle {
        display: flex;
    }

    .logo img {
        height: 70px;
    }

    .header-instagram img,
    .header-facebook img,
    .header-whatsapp img {
        height: 28px;
    }

    header .container {
        padding: 10px 20px;
    }

    .hero {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 1.6em;
        line-height: 1.3;
        padding: 0 10px;
    }

    .hero p {
        font-size: 0.95em;
        padding: 0 15px;
        line-height: 1.6;
    }

    .services {
        padding: 50px 0;
    }

    .services h2 {
        font-size: 2em;
        padding: 0 15px;
    }

    .why-us {
        padding: 50px 0;
    }

    .why-us h2 {
        font-size: 2em;
        padding: 0 15px;
    }

    .services-grid,
    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .service-card {
        padding: 25px 20px;
    }

    .why-card {
        padding: 25px 20px;
    }

    .cta {
        padding: 40px 0;
    }

    .cta h2 {
        font-size: 2em;
        padding: 0 15px;
    }

    .cta p {
        font-size: 1em;
        padding: 0 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0 15px;
    }

    .btn {
        width: 100%;
        max-width: 100%;
        padding: 15px 20px;
        font-size: 16px;
    }

    .container {
        padding: 0 15px;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .work-image {
        height: 200px;
    }

    .intro-text {
        font-size: 1em;
    }

    .service-card h3,
    .why-card h3 {
        font-size: 1.3em;
    }

    .service-card p,
    .why-card p {
        font-size: 0.95em;
    }

    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 2em;
        padding: 0 15px;
    }

    .about-content,
    .works-content,
    .contact-content {
        padding: 40px 0;
    }

    .about-text {
        padding: 0 15px;
    }

    .about-text h2 {
        font-size: 1.6em;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }

    footer {
        padding: 40px 0 20px;
    }
}

@media (max-width: 480px) {
    body.index-page::before {
        background: linear-gradient(to bottom, rgba(30, 58, 138, 0.05), rgba(30, 58, 138, 0.1));
    }

    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 1.3em;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 0.85em;
        margin-bottom: 15px;
        line-height: 1.5;
    }

    .services,
    .why-us {
        padding: 40px 0;
    }

    .services h2,
    .why-us h2,
    .cta h2 {
        font-size: 1.6em;
        margin-bottom: 30px;
    }

    .service-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }

    .service-icon img {
        width: 50px;
        height: 50px;
    }

    .why-icon {
        width: 60px;
        height: 60px;
        font-size: 1.3em;
        margin-bottom: 15px;
    }

    .service-card,
    .why-card {
        padding: 20px 15px;
    }

    .service-card h3,
    .why-card h3 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }

    .service-card p,
    .why-card p {
        font-size: 0.9em;
        line-height: 1.6;
    }

    .cta {
        padding: 30px 0;
    }

    .cta p {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 15px;
    }

    .work-image {
        height: 180px;
    }

    .work-info {
        padding: 15px;
    }

    .work-info h3 {
        font-size: 1.1em;
    }

    .work-info p {
        font-size: 0.9em;
    }

    .page-header {
        padding: 30px 0;
    }

    .page-header h1 {
        font-size: 1.6em;
    }

    .about-content,
    .works-content,
    .contact-content {
        padding: 30px 0;
    }

    .about-text h2 {
        font-size: 1.4em;
    }

    .about-text p {
        font-size: 0.95em;
    }

    footer {
        padding: 30px 0 15px;
    }

    .footer-section h3 {
        font-size: 1.1em;
        margin-bottom: 15px;
    }

    .footer-section p {
        font-size: 0.9em;
    }
}
