 :root {
            --primary-color: #0A74DA; 
            --primary-color-dark: #0056b3;
            --secondary-color: #F5F5F7; 
            --text-color: #1d1d1f; 
            --text-light: #6E6E73;
            --border-color: #E5E5E5;
            --background-color: #FFFFFF;
            --white-color: #FFFFFF;
            --font-family-main: 'Inter', sans-serif;
            --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
            --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
            --border-radius: 12px;
        }
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        html {
            scroll-behavior: smooth;
        }
        body {
            font-family: var(--font-family-main);
            font-size: 17px;
            line-height: 1.6;
            color: var(--text-color);
            background-color: var(--background-color);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        .container {
            max-width: 1140px;
            margin: 0 auto;
            padding: 0 20px;
        }
        h1, h2, h3 {
            font-weight: 700;
            line-height: 1.2;
            color: var(--text-color);
        }
        h1 {
            font-size: 3.5rem;
            font-weight: 800;
            margin-bottom: 1rem;
            color: var(--white-color);
        }
        h2 {
            font-size: 2.8rem;
            margin-bottom: 1rem;
            text-align: center;
        }
        .section-subtitle {
            text-align: center;
            font-size: 1.2rem;
            color: var(--text-light);
            max-width: 600px;
            margin: 0 auto 4rem auto;
        }
        h3 {
            font-size: 1.5rem;
            margin-bottom: 0.75rem;
        }
        p {
            margin-bottom: 1rem;
            color: var(--text-light);
        }
        a {
            color: var(--primary-color);
            text-decoration: none;
            transition: color 0.3s ease;
        }
        a:hover {
            color: var(--primary-color-dark);
        }
        section {
            padding: 6rem 0;
        }
        .header {
            background-color: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            position: sticky;
            top: 0;
            z-index: 100;
            border-bottom: 1px solid var(--border-color);
            width: 100%;
        }
        .header .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.25rem 20px;
        }
        .logo {
            display: block;
        }
        .logo img {
            height: 45px;
            width: auto;
            transition: opacity 0.3s ease;
        }
        .logo:hover img {
            opacity: 0.8;
        }
        .main-nav ul {
            display: flex;
            list-style: none;
        }
        .main-nav li {
            margin-left: 2.5rem;
        }
        .main-nav a {
            color: var(--text-color);
            font-weight: 500;
            font-size: 1rem;
        }
        .hero-section {
            position: relative;
            padding: 10rem 0;
            text-align: center;
            color: var(--white-color);
            background: url('https://images.unsplash.com/photo-1558655146-364adaf1fcc9?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wzOTAzNDV8MHwxfGFsbHx8fHx8fHx8fDE3MTU5NjAyNDR8&ixlib=rb-4.0.3&q=80&w=1080') no-repeat center center;
            background-size: cover;
        }
        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, rgba(17, 24, 39, 0.7), rgba(10, 116, 218, 0.5));
            z-index: 1;
        }
        .hero-content {
            position: relative;
            z-index: 2;
            max-width: 800px;
            margin: 0 auto;
        }
        .hero-content p {
            font-size: 1.25rem;
            margin-bottom: 2.5rem;
            color: rgba(255, 255, 255, 0.9);
        }
        .cta-button {
            display: inline-block;
            background-color: var(--white-color);
            color: var(--primary-color);
            padding: 1rem 2.5rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
            box-shadow: var(--shadow-md);
            border: 2px solid transparent;
        }
        .cta-button:hover {
            background-color: transparent;
            color: var(--white-color);
            border-color: var(--white-color);
            transform: translateY(-2px);
        }
        .cta-button.primary {
             background-color: var(--primary-color);
             color: var(--white-color);
             border-color: var(--primary-color);
        }
        .cta-button.primary:hover {
            background-color: var(--primary-color-dark);
            border-color: var(--primary-color-dark);
            color: var(--white-color);
        }
        .services-section {
            background-color: var(--white-color);
        }
        .services-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin-bottom: 4rem;
        }
        .service-card {
            background-color: var(--secondary-color);
            padding: 2.5rem 2rem;
            border-radius: var(--border-radius);
            text-align: left;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border: 1px solid var(--border-color);
        }
        .service-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-md);
        }
        .service-icon {
            font-size: 2.5rem;
            margin-bottom: 1.5rem;
            color: var(--primary-color);
            display: block;
        }
        .maintenance-banner {
            background: linear-gradient(45deg, var(--primary-color), var(--primary-color-dark));
            color: var(--white-color);
            padding: 3rem;
            border-radius: var(--border-radius);
            text-align: center;
            box-shadow: var(--shadow-md);
        }
        .maintenance-banner h3 {
            color: var(--white-color);
            font-size: 2rem;
        }
        .maintenance-banner p {
            color: rgba(255, 255, 255, 0.9);
            font-size: 1.1rem;
            max-width: 800px;
            margin: 1rem auto 0;
        }
        #proyectos {
            background-color: var(--secondary-color);
        }
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
            gap: 2rem;
        }
        .project-card {
            background-color: var(--background-color);
            border-radius: var(--border-radius);
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            box-shadow: var(--shadow-sm);
        }
        .project-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-md);
        }
        .project-image {
            position: relative;
            overflow: hidden;
            height: 250px;
        }
        .project-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.4s ease;
        }
        .project-card:hover .project-image img {
            transform: scale(1.05);
        }
        .project-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(10, 116, 218, 0.8);
            color: var(--white-color);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.4s ease;
            text-align: center;
            padding: 1rem;
        }
        .project-overlay h3 {
            color: var(--white-color);
        }
        .project-overlay p {
            color: rgba(255, 255, 255, 0.9);
        }
        .project-card:hover .project-overlay {
            opacity: 1;
        }
        .project-info {
            padding: 1.5rem;
        }
        .cta-banner {
            background: var(--text-color) url('https://images.unsplash.com/photo-1534528741775-53994a69daeb?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wzOTAzNDV8MHwxfGFsbHx8fHx8fHx8fDE3MTU5NjA4MjB8&ixlib=rb-4.0.3&q=80&w=1080') no-repeat center center;
            background-size: cover;
            background-blend-mode: overlay;
            padding: 6rem 0;
            text-align: center;
            color: var(--white-color);
        }
        .cta-banner h2 {
            color: var(--white-color);
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 1rem;
        }
        .cta-banner p {
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 2rem;
        }
        .about-section .container {
            display: grid;
            grid-template-columns: 1fr 2fr;
            align-items: center;
            gap: 4rem;
        }
        .about-image img {
            width: 100%;
            max-width: 350px;
            border-radius: var(--border-radius);
            object-fit: cover;
            box-shadow: var(--shadow-md);
        }
        .about-text h2 {
            text-align: left;
        }
        #faq {
            background: linear-gradient(135deg, var(--secondary-color) 0%, #f8f9fa 100%);
        }
        .faq-container {
            max-width: 900px;
            margin: 0 auto;
            background-color: var(--white-color);
            border-radius: var(--border-radius);
            box-shadow: var(--shadow-md);
            padding: 0.2rem;
        }
        .faq-container h2 {
            text-align: center;
            margin-bottom: 3rem;
            color: var(--text-color);
            position: relative;
        }
        .faq-container h2::after {
            content: '';
            position: absolute;
            bottom: -1rem;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: var(--primary-color);
            border-radius: 2px;
        }
        .faq-item {
            border: none;
            margin-bottom: 1.5rem;
            background: var(--secondary-color);
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }
        .faq-item:hover {
            box-shadow: var(--shadow-sm);
            transform: translateY(-1px);
        }
        .faq-item[open] {
            background: var(--white-color);
            box-shadow: var(--shadow-md);
            border: 1px solid rgba(10, 116, 218, 0.2);
        }
        .faq-item:last-child {
            margin-bottom: 0;
        }
        .faq-item summary {
            font-size: 1.2rem;
            font-weight: 600;
            padding: 2rem;
            cursor: pointer;
            list-style: none;
            position: relative;
            padding-right: 3rem;
            background: transparent;
            color: var(--text-color);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            min-height: 60px;
        }
        .faq-item summary:hover {
            color: var(--primary-color);
        }
        .faq-item[open] summary {
            color: var(--primary-color);
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 0;
        }
        .faq-item summary::-webkit-details-marker {
            display: none; /* Hide for Chrome/Safari */
        }
        .faq-item summary::after {
            content: '+';
            position: absolute;
            right: 2rem;
            width: 32px;
            height: 32px;
            background: var(--primary-color);
            color: var(--white-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            font-weight: 400;
            transition: all 0.3s ease;
        }
        .faq-item[open] summary::after {
            transform: rotate(45deg);
            background: var(--primary-color-dark);
        }
        .faq-content {
            padding: 0 2rem 2rem 2rem;
            background: var(--white-color);
        }
        .faq-content ul {
            padding-left: 20px;
        }
        .faq-content li {
            margin-bottom: 0.5rem;
        }
        #contacto {
            background-color: var(--white-color);
        }
        .contact-wrapper {
            display: grid;
            grid-template-columns: 1fr 1.2fr;
            gap: 4rem;
            align-items: flex-start;
            background-color: var(--secondary-color);
            padding: 4rem;
            border-radius: var(--border-radius);
        }
        .contact-info h3 {
            font-size: 2rem;
            margin-bottom: 1.5rem;
        }
        .contact-details p {
            display: flex;
            align-items: center;
            gap: 1rem;
            font-size: 1.1rem;
            margin-bottom: 1.5rem;
        }
        .contact-details p svg {
            width: 24px;
            height: 24px;
            color: var(--primary-color);
            flex-shrink: 0;
        }
        .contact-info h3 {
            margin-bottom: 1.5rem;
        }
        .contact-form-wrapper h3 {
            margin-top: 0;
            margin-bottom: 1.5rem;
            font-size: 1.3rem;
            font-weight: 600;
        }
        .contact-form .form-group {
            margin-bottom: 1.5rem;
        }
        .contact-form label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }
        .contact-form input,
        .contact-form textarea {
            width: 100%;
            padding: 1rem;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-family: inherit;
            font-size: 1rem;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }
        .contact-form input:focus,
        .contact-form textarea:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(10, 116, 218, 0.2);
        }
        .footer {
            background-color: var(--text-color);
            color: var(--text-light);
            padding: 3rem 0;
        }
        .footer .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }
        .footer p {
            color: var(--text-light);
        }
        .footer-links {
            display: flex;
            list-style: none;
            gap: 1.5rem;
        }
        .footer-links a {
            color: var(--text-light);
            text-decoration: none;
        }
        .footer-links a:hover {
            color: var(--white-color);
        }
        @media (max-width: 992px) {
            .about-section .container {
                grid-template-columns: 1fr;
                text-align: center;
            }
            .about-image {
                margin: 0 auto 2rem auto;
            }
            .about-text h2 {
                text-align: center;
            }
            .contact-wrapper {
                grid-template-columns: 1fr;
                padding: 2rem;
            }
        }
        @media (max-width: 768px) {
            h1 { font-size: 2.5rem; }
            h2 { font-size: 2.2rem; }
            .header .container, .footer .container {
                flex-direction: column;
                gap: 1rem;
            }
            .main-nav ul {
                padding: 0;
                gap: 1rem;
                flex-wrap: wrap;
                justify-content: center;
            }
            .main-nav li {
                margin-left: 0;
            }
            .services-grid {
                grid-template-columns: 1fr;
            }
            .footer .container {
                flex-direction: column;
                gap: 1.5rem;
            }
            .faq-container {
                padding: 2rem 1.5rem;
                margin: 0 1rem;
            }
            .faq-item summary {
                padding: 1.5rem;
                padding-right: 4rem;
                font-size: 1.1rem;
            }
            .faq-content {
                padding: 0 1.5rem 1.5rem 1.5rem;
            }
        }

        /* ========================================
           ESTILOS DE SEGURIDAD PARA FORMULARIO
           ======================================== */

        /* Indicador de formulario seguro */
        .contact-form[data-secure="true"]::before {
            content: "🔒 Formulario Seguro";
            display: block;
            background: linear-gradient(135deg, #28a745, #20c997);
            color: white;
            padding: 8px 16px;
            margin-bottom: 2rem;
            border-radius: var(--border-radius);
            font-size: 14px;
            font-weight: 600;
            text-align: center;
        }

        /* Estados de validación */
        .contact-form input.error,
        .contact-form textarea.error {
            border-color: #e74c3c;
            background-color: #fdf2f2;
        }

        .contact-form input.error:focus,
        .contact-form textarea.error:focus {
            box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
        }

        /* Mensajes de error de campo */
        .field-error {
            color: #e74c3c;
            font-size: 14px;
            margin-top: 5px;
            display: flex;
            align-items: center;
            gap: 5px;
            animation: slideDown 0.3s ease;
        }

        .field-error::before {
            content: "⚠️";
            font-size: 12px;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Contador de caracteres */
        .character-counter {
            font-size: 12px;
            color: var(--text-light);
            text-align: right;
            margin-top: 4px;
            transition: color 0.3s ease;
        }

        .character-counter.warning {
            color: #f39c12;
            font-weight: 600;
        }

        .character-counter.error {
            color: #e74c3c;
            font-weight: 600;
        }

        /* Botón mejorado con estados de carga */
        .cta-button {
            position: relative;
            overflow: hidden;
            min-width: 160px;
            text-align: center;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            border: none;
            cursor: pointer;
        }

        .cta-button:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            transform: none;
        }

        .button-loading {
            display: none;
        }

        .cta-button:disabled .button-text {
            display: none;
        }

        .cta-button:disabled .button-loading {
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .cta-button:disabled .button-loading::after {
            content: "";
            width: 16px;
            height: 16px;
            border: 2px solid transparent;
            border-top: 2px solid currentColor;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        /* Mensajes de estado del formulario */
        .form-status {
            padding: 16px;
            border-radius: var(--border-radius);
            margin-top: 1rem;
            font-weight: 500;
            animation: fadeIn 0.5s ease;
            border-left: 4px solid;
        }

        .form-status.success {
            background-color: #d4edda;
            color: #155724;
            border-color: #28a745;
        }

        .form-status.error {
            background-color: #f8d7da;
            color: #721c24;
            border-color: #e74c3c;
        }

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

        /* Información de seguridad */
        .security-info {
            margin-top: 1.5rem;
            text-align: center;
        }

        .security-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 12px;
            color: #28a745;
            margin-bottom: 8px;
            padding: 4px 8px;
            background: rgba(40, 167, 69, 0.1);
            border-radius: 4px;
            border: 1px solid rgba(40, 167, 69, 0.2);
        }

        .security-badge::before {
            content: "🔒";
        }

        .privacy-notice {
            font-size: 12px;
            color: var(--text-light);
            line-height: 1.4;
        }

        .privacy-notice a {
            color: var(--primary-color);
            text-decoration: none;
        }

        .privacy-notice a:hover {
            text-decoration: underline;
        }

        /* Responsive para formulario seguro */
        @media (max-width: 768px) {
            .contact-form[data-secure="true"]::before {
                margin-bottom: 1.5rem;
            }
            
            .cta-button {
                width: 100%;
                padding: 16px 32px;
                font-size: 18px;
            }
        }