/* ===================== */
/* RESET Y TIPOGRAFÍA    */
/* ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===================== */
/* FONDO GENERAL Y OVERLAY */
/* ===================== */
body {
    background: url('../images/gris.webp') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    font-family: Arial, sans-serif;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Overlay semitransparente sobre el fondo */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3); /* Negro con 30% opacidad */
    z-index: -1;
}

/* ===================== */
/* HEADER Y NAVEGACIÓN   */
/* ===================== */
header {
    background-color: #004080;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    flex-wrap: wrap;
}



nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* ===================== */
/* HERO                  */
/* ===================== */
.hero {
    padding: 100px 20px;
    text-align: center;
    color: white;
    text-shadow: 1px 1px 5px #000; /* texto legible sobre cualquier fondo */
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
}

/* ===================== */
/* SERVICIOS             */
/* ===================== */
.services {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 50px 20px;
    background-color: rgba(255,255,255,0.9); /* blanco semi-transparente */
}

.service {
    background-color: #f0f0f0;
    width: 30%;
    min-width: 250px;
    margin: 15px;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.service h2 {
    margin-bottom: 15px;
    color: #004080;
}

/* ===================== */
/* CONTACTO              */
/* ===================== */
.contact {
    background-color: rgba(0,64,128,0.95); /* azul oscuro semi-transparente */
    color: white;
    padding: 50px 20px;
    text-align: center;
}

.contact form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.contact input,
.contact textarea {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: none;
}

.contact button {
    padding: 10px;
    background-color: #e6f0ff;
    color: #004080;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.contact button:hover {
    background-color: #cce0ff;
    transform: scale(1.05);
}

/* ===================== */
/* FOOTER                */
/* ===================== */
footer {
    text-align: center;
    padding: 20px;
    background-color: #00264d;
    color: white;
}



/* ===================== */
/* ENLACES CONTACTO      */
/* ===================== */
.contact a {
    color: #ffffff !important;   /* blanco brillante */
    text-decoration: none !important; /* sin subrayado */
    font-weight: bold;
}

.contact a:hover {
    color: #ffdd00 !important;   /* amarillo brillante al pasar el mouse */
}

/* ===================== */
/* POPUP                 */
/* ===================== */
#popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.7);

    display: none; /* importante */
    justify-content: center;
    align-items: center;

    z-index: 9999; /* 🔥 clave para que esté arriba de todo */
}

/* Caja del mensaje */
.popup-content {
    background: #ffffff;
    color: #004080;

    padding: 30px;
    border-radius: 12px;

    text-align: center;

    box-shadow: 0 10px 30px rgba(0,0,0,0.3);

    animation: aparecer 0.3s ease;
}

/* Texto */
.popup-content p {
    font-size: 18px;
    font-weight: bold;
}

/* Botón */
.popup-content button {
    margin-top: 15px;
    padding: 10px 20px;

    background-color: #004080;
    color: white;

    border: none;
    border-radius: 6px;

    cursor: pointer;
    transition: 0.3s;
}

.popup-content button:hover {
    background-color: #0066cc;
    transform: scale(1.05);
}

/* Animación */
@keyframes aparecer {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.menu {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 auto;
}
.emergencia {
  font-size: 16px;
  font-weight: bold;
  padding: 10px 14px;
}

.wtsp_imagen {
  width: 70px;   /* para hacerlo mas chico o grand */
  height: auto;
}
.wtsp_link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	text-decoration: none;
	cursor: pointer;
}
.logo {
  max-width: 150px;
  height: auto;
}


@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  .menu {
    flex-direction: column;
    margin-top: 10px;
  }

  .logo {
    max-width: 120px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8em;
  }

  .hero p {
    font-size: 1em;
  }


  nav a {
    margin: 10px 0;
    display: block;
    width: 100%;
  }
}

/* 

		PAGOS

*/


.pagos {
    padding: 60px 20px;
    background-color: #f5f5f5;
    text-align: center;
}

.pagos h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #1d3557;
}

.pagos-contenedor {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.pago {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 420px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: left;
}

.pago:hover {
    transform: translateY(-5px);
}

.pago h3 {
    color: #e63946;
    margin-bottom: 15px;
    text-align: center;
}

.pago p {
    margin: 8px 0;
    color: #444;
}

.pago span {
    font-weight: bold;
    color: #000;
}

.titulo-pago {
    font-weight: bold;
    margin-top: 15px;
    color: #1d3557;
    text-align: center;
}

/* 

		ICONO DEL TELEFONO

*/

.telefono{
	font-size: 1.2rem;
	color: #ffffff;

	display: flex;
	align-items: center;
	gap: 10px;
}

.icono-telefono{
	width: clamp(20px, 3vw, 35px);
	height: clamp(20px, 3vw, 35px);
}

.titulo_pregunta{
	color: #1d3557;
	width: 100%;
	text-align: center;
	margin-bottom: 40px;	
}

.gas_link {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	color: inherit;        /* toma el color del texto del contenedor */
	text-decoration: none; /* quita el subrayado */
}