:root {
    /* Colores */
    --primary-dark: #2c3e50;
    --primary-blue: #3498db;
    --primary-green: #2ecc71;
    --hover-blue: #2980b9;
    --hover-green: #27ae60;
    --text-dark: #333;
    --text-medium: #555;
    --text-light: #fff;
    --text-hero-light: #ecf0f1;
    --bg-light: #f8f8f8;
    --bg-section-light: #ecf0f1;
    --bg-card: #fff;
    --card-title-color: #34495e;

    /* Sombras */
    --shadow-light: 0 2px 5px rgba(0,0,0,0.2);
    --shadow-card: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-card-hover: 0 8px 25px rgba(0,0,0,0.15);
    --shadow-hero: 0 5px 15px rgba(0,0,0,0.3);
    --shadow-hero-text: 3px 3px 8px rgba(0,0,0,0.6);
    --shadow-cta-hero: 0 6px 20px rgba(46,204,113,0.4);
    --shadow-cta-hero-hover: 0 10px 25px rgba(46,204,113,0.5);
    --shadow-value-prop: 0 2px 10px rgba(0,0,0,0.2);
    --shadow-form-focus: 0 0 8px rgba(52,152,219,0.3);

    /* Bordes */
    --border-radius-sm: 5px;
    --border-radius-md: 8px;
    --border-radius-lg: 10px;
    --border-radius-round: 25px;
    --border-radius-full: 50px;

    /* Transiciones */
    --transition: 0.3s ease;
    --transition-fast: 0.2s ease;

    /* Espaciado */
    --section-padding: 60px 0;
}

/* Reset y estilos base */
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    margin: 0;
    color: var(--text-dark);
    background: var(--bg-light);
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Encabezado */
header {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 1.2rem 0;
    border-bottom: 4px solid var(--primary-blue);
    box-shadow: var(--shadow-light);
    overflow: auto;
}

header h1 {
    float: left;
    font-size: 28px;
    margin: 0;
}

.logo {
    float: left;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--text-light);
    text-decoration: none;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

nav {
    float: right;
    margin-top: 5px;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header li {
    display: inline;
    margin-left: 25px;
}

header a {
    color: var(--text-light);
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition);
}

header a:hover {
    color: var(--primary-blue);
}

.cta-header {
    background: var(--primary-blue);
    border-radius: var(--border-radius-round);
    padding: 8px 18px;
    font-weight: bold;
    transition: background-color var(--transition), transform var(--transition-fast);
}

.cta-header:hover {
    background: var(--hover-blue);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,50,100,0.75), rgba(0,20,50,0.85)), 
                url('Imagenes/hero-bg-tech.jpg') center/cover no-repeat;
    box-shadow: var(--shadow-hero);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 580px;
    padding: 100px 20px;
    text-align: center;
}

.hero-content {
    max-width: 950px;
}

.hero h2 {
    color: var(--text-hero-light);
    font-size: 4.2em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    text-shadow: var(--shadow-hero-text);
}

.hero p {
    color: var(--text-hero-light);
    font-size: 1.6em;
    margin: 0 auto 50px;
    max-width: 800px;
}

/* Estilos para el botón mejorado */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: bold;
    text-decoration: none;
    transition: all var(--transition);
    text-align: center;
}

.cta-button i {
    transition: transform var(--transition-fast);
}

.cta-button:hover i {
    transform: translateX(3px);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-blue);
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: color var(--transition);
}

.card-link i {
    font-size: 0.8em;
    transition: transform var(--transition-fast);
}

.card-link:hover {
    color: var(--hover-blue);
}

.card-link:hover i {
    transform: translateX(3px);
}

.cta-button-large:hover {
    background: var(--hover-green);
    box-shadow: var(--shadow-cta-hero-hover);
    transform: translateY(-4px);
}

.value-propositions {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    margin-top: 40px;
}

.value-propositions span {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    box-shadow: var(--shadow-value-prop);
    color: var(--text-hero-light);
    font-size: 1.2em;
    font-weight: 600;
    padding: 15px 30px;
    backdrop-filter: blur(8px);
}

/* Secciones comunes */
h2, h3 {
    color: var(--primary-dark);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

h2 { font-size: 2.5em; }
h3 { font-size: 2em; margin-top: 30px; }

.services-overview,
.why-us,
.page-content {
    padding: var(--section-padding);
}

/* Tarjetas de servicios */
.service-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    flex: 1 1 30%;
    max-width: 350px;
    padding: 30px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-8px);
}

.card img {
    max-width: 90px;
    margin-bottom: 20px;
}

.card h4 {
    color: var(--card-title-color);
    font-size: 1.6em;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-medium);
    font-size: 1.05em;
    margin-bottom: 20px;
}

.card a {
    color: var(--primary-blue);
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: color var(--transition);
}

.card a:hover {
    color: var(--hover-blue);
}

/* Why Us Section */
.why-us {
    background: var(--bg-section-light);
}

.why-us ul {
    display: grid;
    gap: 15px;
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.why-us li {
    color: var(--card-title-color);
    font-size: 1.2em;
    padding-left: 30px;
    position: relative;
}

.why-us li::before {
    content: '✓';
    color: var(--primary-green);
    font-size: 1.3em;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: -2px;
}

/* Página de servicios */
.page-content {
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-top: 40px;
    padding: 40px;
}

.service-detail {
    background: var(--bg-card);
    border-left: 5px solid var(--primary-blue);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    padding: 30px;
}

.service-detail h3 {
    text-align: left;
    margin-bottom: 20px;
}

.service-detail ul {
    color: var(--text-medium);
    margin-left: 20px;
}

.service-detail li {
    font-size: 1.05em;
    margin-bottom: 10px;
}

/* Formulario */
.quote-form-section {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-card);
    margin-top: 40px;
    padding: 40px;
}

.quote-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--card-title-color);
    font-size: 1.05em;
    font-weight: bold;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dcdcdc;
    border-radius: var(--border-radius-md);
    font-size: 1em;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-form-focus);
    outline: none;
}

.quote-form .cta-button {
    background: var(--primary-blue);
    border-radius: var(--border-radius-md);
    font-size: 1.2em;
    padding: 15px 30px;
    color: var(--text-light);
}

.quote-form .cta-button:hover {
    background: var(--hover-blue);
    transform: translateY(-2px);
}

#form-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: var(--border-radius-sm);
    color: #155724;
    font-weight: bold;
    margin-top: 20px;
    padding: 15px;
    text-align: center;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: var(--text-light);
    font-size: 0.95em;
    margin-top: 60px;
    padding: 25px 0;
    text-align: center;
}

/* Media Queries */
@media (max-width: 992px) {
    .container { width: 90%; }
    header h1 { font-size: 24px; }
    .logo img { height: 35px; }
    
    header nav {
        float: none;
        margin-top: 15px;
        text-align: center;
        width: 100%;
    }
    
    header li { margin: 0 15px; }
    
    .hero {
        min-height: 450px;
        padding: 80px 15px;
    }
    
    .hero h2 { font-size: 3.5em; }
    .hero p { font-size: 1.3em; margin-bottom: 30px; }
    
    .cta-button-large {
        font-size: 1.4em;
        padding: 15px 35px;
    }
    
    .value-propositions {
        gap: 20px;
    }
    
    .value-propositions span {
        font-size: 1.1em;
        padding: 12px 25px;
    }
    
    .card {
        flex: 1 1 90%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    header h1, header nav {
        float: none;
        text-align: center;
    }
    
    header li {
        display: block;
        margin: 10px 0;
    }
    
    .hero {
        min-height: 400px;
        padding: 60px 10px;
    }
    
    .hero h2 { font-size: 2.8em; }
    .hero p { font-size: 1.1em; margin-bottom: 25px; }
    
    .cta-button-large {
        font-size: 1.2em;
        padding: 12px 30px;
        margin-bottom: 25px;
    }
    
    .value-propositions {
        flex-direction: column;
        gap: 15px;
    }
    
    .value-propositions span {
        font-size: 1em;
        padding: 10px 20px;
        width: 90%;
        margin: 0 auto;
    }
    
    h2, h3 { font-size: 2em; }
    
    .services-overview,
    .why-us,
    .page-content {
        padding: 40px 0;
    }
    
    .card, .service-detail { padding: 25px; }
    .quote-form-section { padding: 30px; }
    footer { margin-top: 30px; padding: 20px 0; }
}

@media (max-width: 480px) {
    header h1 { font-size: 22px; }
    .logo img { height: 30px; }
    
    .hero h2 {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 0.95em;
        margin-bottom: 20px;
    }
    
    .cta-button-large {
        font-size: 1.1em;
        padding: 10px 25px;
    }
    
    .value-propositions span {
        font-size: 0.9em;
        padding: 8px 18px;
    }
    
    h2, h3 { font-size: 1.8em; }
    
    .card h4 { font-size: 1.4em; }
    .card p { font-size: 0.95em; }
    
    .form-group label { font-size: 0.9em; }
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
    }
    
    .quote-form .cta-button {
        font-size: 1.1em;
        padding: 12px 25px;
    }
}