        :root {
            --negro: #1a1a1a;
            --blanco: #ffffff;
            --gris-claro: #f5f5f5;
            --gris-texto: #666;
            --rojo-principal: #dd2226;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            color: var(--negro);
            line-height: 1.6;
        }

        .container {
            width: 85%;
            margin: 0 auto;
            padding: 0 1rem;
        }

        a {
            text-decoration: none;
            color: #000000;
        }

        /* Barra Superior */
        .top-bar {
            padding: 10px 0;
            font-size: 14px;
        }

        .top-bar .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }

        .top-bar .contact-info {
            color: #000;
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }

        .top-bar .contact-info a {
            transition: color 0.3s;
            display: flex;
            align-items: center;
        }

        .top-bar .contact-info a:hover {
            color: #dd2226;
        }

        .top-bar i {
            margin-right: 8px;
            color: #dd2226;
        }

        .top-bar i:hover {
            color: #000000;
        }

        .top-bar .social-links {
            display: flex;
            gap: 15px;
        }

        .top-bar .social-links a {
            color: #000;
            transition: color 0.3s;
            font-size: 16px;
        }

        .top-bar .social-links a:hover {
            color: #dd2226;
        }

        /* Header Principal */
        header {
            background: #dd2226;
            box-shadow: 0 4px 12px rgba(221, 34, 38, 0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .header-content {
            padding: 0 3rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .logo-nav {
            display: flex;
            align-items: center;
        }

        .logo img {
            height: 80px;
            width: auto;
            transition: transform 0.3s ease;
        }

        .logo img:hover {
            transform: scale(1.05);
        }

        .main-nav ul {
            display: flex;
            list-style: none;
            gap: 1.5rem;
            margin: 0;
        }

        .main-nav ul li a {
            color: #fff;
            font-weight: 500;
            transition: color 0.3s;
            position: relative;
        }

        .main-nav ul li a:hover {
            color: #000;
        }

        .main-nav ul li a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: #000;
            transition: width 0.3s;
        }

        .main-nav ul li a:hover::after {
            width: 100%;
        }

        .services-nav {
            max-width: 350px;
            font-size: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .services-nav ul {
            display: flex;
            list-style: none;
            gap: 0.75rem;
            margin: 0;
            padding: 0;
            align-items: center;
        }

        .services-nav ul li a {
            color: #fff;
            font-weight: 500;
            transition: color 0.3s;
            position: relative;
            display: inline-block;
            padding: 0.5rem 0;
            text-align: center;
        }

        .services-nav ul li a:hover {
            color: #000;
        }

        .services-nav ul li a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: #000;
            transition: width 0.3s;
        }

        .services-nav ul li a:hover::after {
            width: 100%;
        }

        /* Dropdown para móviles */
        .dropdown-mobile {
            display: none;
            position: relative;
        }

        .dropdown-mobile .dropdown-menu-mobile {
            position: absolute;
            top: 100%;
            left: -95px;
            background-color: #dd2226;
            box-shadow: 0 4px 12px rgba(221, 34, 38, 0.1);
            border-radius: 5px;
            min-width: 250px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
            z-index: 10;
            display: flex;
            flex-direction: column;
            gap: 0;
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .dropdown-mobile:hover .dropdown-menu-mobile {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown-menu-mobile li {
            padding: 0.8rem 1.5rem;
            text-align: left;
        }

        .dropdown-menu-mobile li a {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            font-size: 0.9rem;
            font-weight: 500;
            color: #fff;
            text-decoration: none;
            transition: color 0.3s, padding-left 0.3s;
            display: block;
        }

        .dropdown-menu-mobile li a:hover {
            color: #000;
        }

        #servicios-toggle i {
            font-size: 0.8rem;
            transition: transform 0.3s ease;
        }

        .dropdown-mobile:hover #servicios-toggle i {
            transform: rotate(180deg);
        }

        /* Footer */
        footer {
            padding: 2rem 0;
            background: #dd2226;
            color: #fff;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .footer-logo {
            text-align: center;
        }

        .footer-logo img {
            margin-bottom: 1rem;
        }

        .footer-logo p {
            font-size: 0.9rem;
            max-width: 300px;
            margin: 0 auto;
        }

        .footer-links h3 {
            font-size: 1.3rem;
            margin-bottom: 1rem;
        }

        .footer-links ul {
            padding: 0;
            list-style: none;
        }

        .footer-links ul li a {
            color: #fff;
            transition: color 0.3s;
        }

        .footer-links ul li a:hover {
            color: #000;
        }

        .footer-links .social-links {
            margin-top: 10px;
            display: flex;
            gap: 25px;
        }

        .footer-links .social-links a {
            color: #fff;
            font-size: 1.2rem;
        }

        .footer-links .social-links a:hover {
            color: #000;
        }

        .copyright {
            text-align: center;
            font-size: 0.9rem;
        }

        /* Botón WhatsApp flotante */
        .whatsapp-float {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            background-color: #dd2226;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 30px;
            box-shadow: 0 5px 15px rgba(221, 34, 38, 0.3);
            z-index: 100;
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .whatsapp-float:hover {
            transform: scale(1.1);
            box-shadow: 0 8px 20px rgba(221, 34, 38, 0.4);
        }

        /* Modal de Contacto */
        #btn-modal {
            display: none;
        }

        .container-modal {
            width: 100%;
            height: 100vh;
            position: fixed;
            top: 0;
            left: 0;
            background-color: rgba(0, 0, 0, 0.5);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 100;
        }

        #btn-modal:checked ~ .container-modal {
            display: flex;
        }

        .contenido-modal {
            width: 100%;
            max-width: 600px;
            max-height: 80vh;
            padding: 20px;
            background-color: white;
            border-radius: 15px;
            overflow-y: auto;
            text-align: center;
            position: relative;
        }

        .contenido-modal h2 {
            margin-bottom: 20px;
        }

        .contacto {
            margin: 20px 0;
            padding: 15px;
            border: 1px solid #ccc;
            border-radius: 10px;
        }

        .contacto h4 {
            margin-bottom: 10px;
            color: #DD2226;
        }

        .contacto .nombre {
            font-weight: bold;
            margin-bottom: 10px;
        }

        .datos a {
            display: block;
            color: black;
            text-decoration: none;
            margin: 6px 0;
        }

        .datos a i {
            margin-right: 6px;
        }

        .btn-cerrar {
            width: 100%;
            margin-top: 20px;
            display: flex;
            justify-content: center;
        }

        .btn-cerrar label {
            padding: 8px 15px;
            background-color: #DD2226;
            color: white;
            border-radius: 5px;
            cursor: pointer;
            transition: all 300ms ease;
        }

        .btn-cerrar label:hover {
            background-color: #000000;
        }

        .cerrar-modal {
            width: 100%;
            height: 100vh;
            position: absolute;
            top: 0;
            left: 0;
            z-index: -1;
        }

        /* Mapa */
        .map-container {
            position: relative;
        }

        .map-hover {
            display: none;
            position: absolute;
            bottom: 100%;
            left: -15px;
            z-index: 100;
            border: 2px solid #ddd;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

        .map-container:hover .map-hover {
            display: block;
        }

        /* Page-Specific Styles for Perforacion-Direccional.html */

        .hero-content {
            position: relative;
            z-index: 1;
            max-width: 800px;
            margin: 0 auto;
            padding: 2rem;
        }

        .hero h1 {
            font-size: 3rem;
            margin-bottom: 1rem;
            text-shadow: 0 2px 4px rgba(221, 34, 38, 0.3);
        }

        .hero p {
            font-size: 1.2rem;
            margin-bottom: 2rem;
            opacity: 0.9;
        }

        /* Experience Section Redesigned */
        .experience-content-redesigned {
            display: flex;
            flex-direction: column;
            gap: 30px;
            margin-bottom: 30px;
        }

        .experience-card {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 20px 15px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            position: relative;
            overflow: hidden;
            opacity: 0; /* Start hidden */
        }

        .experience-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: #d62d20;
        }

        .hover-effect {
            transition: all 0.3s ease;
        }

        .hover-effect:hover {
            transform: translateX(3px);
            background: rgba(221, 34, 38, 0.1);
        }

        .country-header {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .country-flag {
            width: 60px;
            height: 44px;
            border-radius: 3px;
            margin-right: 10px;
        }

        .peru-flag {
            background: linear-gradient(to right, #d62d20 33%, white 33%, white 66%, #d62d20 66%);
        }

        .ecuador-flag {
            background: linear-gradient(to bottom, #FFD700 33%, #0066CC 33%, #0066CC 66%, #FF0000 66%);
        }

        .country-name {
            font-size: 3rem;
            font-weight: bold;
            color: #333;
        }

        .wells-counter {
            text-align: center;
            margin-bottom: 15px;
        }

        .count {
            font-size: 5rem;
            font-weight: bold;
            color: #d62d20;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
            display: block;
        }

        .counter-label {
            font-size: 0.9rem;
            color: #666;
            letter-spacing: 0.5px;
        }

        /* Years/Projects Grid Layout */
        .years-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
            margin-bottom: 15px;
        }

        .years-compact, .ecuador-projects-compact {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .year-compact, .project-compact {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 10px 12px;
            border-left: 3px solid #d62d20;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s ease;
        }

        .year-compact:hover, .project-compact:hover {
            transform: translateX(3px);
            background: rgba(221, 34, 38, 0.1);
        }

        .year-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            border-bottom: 1px solid #e0e0e0;
            padding-bottom: 6px;
            width: 100%;
        }

        .year-title, .project-name {
            font-size: 1rem;
            font-weight: 500;
            color: #333;
        }

        .year-count, .project-wells {
            background: #d62d20;
            color: white;
            padding: 2px 6px;
            border-radius: 10px;
            font-size: 0.75rem;
            font-weight: bold;
        }

        .year-total {
            background: #d62d20;
            color: white;
            padding: 3px 8px;
            border-radius: 10px;
            font-size: 0.75rem;
            font-weight: bold;
        }

        .projects-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
            width: 100%;
        }

        .project-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 4px 0;
            font-size: 0.85rem;
        }

        .project-item .project-name {
            color: #666;
            flex-grow: 1;
            font-size: 0.8rem;
        }

        .project-item .project-wells {
            background: rgba(214, 45, 32, 0.1);
            color: #d62d20;
            padding: 2px 6px;
            border-radius: 6px;
            font-weight: bold;
            font-size: 0.75rem;
            min-width: 20px;
            text-align: center;
        }

        .projects-compact {
            color: #666;
            font-size: 0.8rem;
            margin-top: 5px;
            line-height: 1.3;
        }

        /* Grid layout for years/projects */
        .year-compact-grid, .project-compact {
            flex: 0 1 calc(20% - 8px);
            min-width: 140px;
            background: #f8f9fa;
            border-radius: 8px;
            padding: 12px;
            border-left: 3px solid #d62d20;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
        }

        .year-compact-grid:hover, .project-compact:hover {
            transform: translateX(3px);
            background: rgba(221, 34, 38, 0.1);
        }

        /* Servicios detallados */
        .service-section {
            padding: 8px 0px;
        }

        .service-content {
            display: flex;
            flex-wrap: wrap;
            gap: 2rem;
            justify-content: center;
            align-items: center;
            margin-bottom: 2rem;
        }

        .service-text {
            flex: 1 1 400px;
            max-width: 600px;
        }

        .service-text h3 {
            text-align: center;
            color: #dd2226;
            font-size: 1.8rem;
            margin-bottom: 1rem;
        }

        .service-text p {
            text-align: justify;
            font-size: 1.1rem;
            margin-bottom: 1rem;
        }

        .service-image {
            flex: 1 1 300px;
            max-width: 500px;
        }

        .service-image img {
            width: 100%;
            height: auto;
            border-radius: 8px;
            transition: transform 0.3s;
        }

        .service-image img:hover {
            transform: scale(1.05);
        }

        .full-width-image {
            width: 100%;
            max-width: 1200px;
            margin: 2rem auto;
            text-align: center;
        }

        .full-width-image img {
            width: 100%;
            height: auto;
            border-radius: 8px;
        }

        .why-choose-us {
            background: var(--blanco);
            padding: 16px 0px;
        }

        .why-choose-us ul {
            list-style: none;
            padding: 0;
        }

        .why-choose-us li {
            font-size: 1.1rem;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .why-choose-us i {
            font-size: 1.5rem;
            color: #dd2226;
        }

            .section-title {
            text-align: center;
            margin-bottom: 3rem;
        }

        .section-title p {
            text-align: justify;
            margin-bottom: 3rem;
        }

        .section-title h2 {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--negro);
            position: relative;
            display: inline-block;
            padding-bottom: 1rem;
        }

        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 120px;
            height: 4px;
            background: #dd2226;
        }

        .section-title span {
            color: #dd2226;
        }

        .section-title .subtitle {
            font-size: 1.1rem;
            margin-top: 1rem;
            margin-left: auto;
            margin-right: auto;
        }

        /* Responsive Design */
        @media (max-width: 1150px) {
            .map-container:hover .map-hover {
                display: none;
            }
        }

        @media (max-width: 1024px) {
            .year-compact-grid, .project-compact {
                flex: 0 1 calc(33.33% - 8px);
                min-width: 150px;
            }
        }

        @media (max-width: 768px) {
            .top-bar .container {
                gap: 10px;
            }

            .top-bar .contact-info {
                gap: 10px;
                align-items: center;
            }

            .top-bar .contact-info a {
                font-size: 0;
            }

            .top-bar .contact-info a i {
                font-size: 16px;
                margin: 0;
            }

            .top-bar .social-links a {
                font-size: 18px;
            }

            .header-content {
                flex-direction: column;
                text-align: center;
                gap: 1rem;
            }

            .logo-nav {
                flex-direction: column;
                align-items: center;
            }

            .logo img {
                height: 50px;
            }

            .main-nav ul {
                flex-direction: row;
                width: 100%;
                padding: 1rem 0;
                justify-content: center;
                align-items: center;
            }

            .main-nav ul li {
                width: auto;
                text-align: center;
            }

            .main-nav ul li a {
                display: block;
                font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
                font-weight: 500;
            }

            .services-nav {
                display: none;
            }

            .dropdown-mobile {
                display: block;
            }

            .hero {
                aspect-ratio: 16/5;
            }

            .hero h1 {
                font-size: 2rem;
            }

            .hero p {
                font-size: 1rem;
            }

            .year-compact-grid, .project-compact {
                flex: 0 1 calc(50% - 8px);
                min-width: 140px;
            }

            .experience-card {
                padding: 15px 12px;
            }

            .count {
                font-size: 3.5rem;
            }

            .country-name {
                font-size: 2rem;
            }

            .project-compact {
                flex-direction: column;
                text-align: center;
                gap: 6px;
            }

            .footer-content {
                grid-template-columns: 1fr;
            }

            .footer-logo img {
                margin: 0 auto;
            }

            .footer-links .social-links {
                justify-content: center;
            }
        }

        @media (max-width: 600px) {
            .datos a {
                display: inline-block;
                margin: 10px;
                font-size: 1.5rem;
            }

            .datos a .texto {
                display: none;
            }

            .contenido-modal {
                max-width: 90%;
            }
        }

        @media (max-width: 480px) {
            .year-compact-grid, .project-compact {
                flex: 0 1 100%;
                min-width: auto;
            }

            .experience-card {
                padding: 12px 10px;
            }

            .count {
                font-size: 3rem;
            }

            .year-compact, .project-compact, .year-compact-grid {
                padding: 8px 10px;
            }

            .year-title, .project-name {
                font-size: 0.9rem;
            }

            .projects-compact {
                font-size: 0.75rem;
            }

            .whatsapp-float {
                width: 50px;
                height: 50px;
                font-size: 25px;
                bottom: 20px;
                right: 20px;
            }

            .section-title h2 {
                font-size: 2rem;
            }
        }