/* === Variables principales === */
:root {
  --primary-blue: #2728a8;        
  --primary-pink: #ca116b;        
  --white: #ffffff;               
  --text-white: #ffffff;          
  --light-white: #F0F8FF;          
  --light-pink: #ca116b;         
  --background: #000000;          /
}
/* Centrar texto dentro de todas las tarjetas */
.card {
  text-align: center;       /* centra títulos, párrafos y listas */
  display: flex;            /* para que el contenido se alinee correctamente */
  flex-direction: column;   /* columna dentro de la tarjeta */
  justify-content: center;  /* centra verticalmente si quieres */
  align-items: center;      /* centra horizontalmente */
  padding: 20px;
  border-radius: 8px;
  background-color: #2e2ed9;
  color: #ffffff;            
}

/* Ajustar títulos y párrafos */
.card h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card p, 
.card ul {
  font-size: 14px;
  line-height: 1.5;
}

.card ul {
  padding-left: 0; 
  list-style: none; 
}

.card ul li {
  margin: 4px 0;
}


#nosotros h2 {
  font-size: 24px; 
}
#nosotros p {
  font-size: 16px; 
  line-height: 1.5;
}
#nosotros .card h2 {
  font-size: 20px; /* título de la tarjeta */
}

#nosotros .card p,
#nosotros .card ul li {
  font-size: 14px; /* texto y lista dentro de la tarjeta */
  line-height: 1.4;
}

footer {
  background: #f8f8f8;   /* color del fondo */
  padding: 20px;
  text-align: center;    /* centra el texto */
}

/* Bloque del texto arriba */
.footer-section {
  margin-bottom: 20px;
}

/* Lista vertical centrada */
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column; /* uno debajo del otro */
  align-items: center;    /* centrado */
  gap: 10px;
  margin: 0 0 20px 0;     /* espacio entre tarjetas */
  padding: 0;
}

.footer-links li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  transition: color 0.3s;
}

.footer-links li a:hover {
  color: #ca116b;
}

/* Copy abajo */
.footer-copy {
  font-size: 14px;
  color: #000000;
}


.btn-maps {
  background: linear-gradient(135deg, #ca116b, #2728a8); 
  color: #ffffff;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-weight: bold;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  user-select: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-maps:hover,
.btn-maps:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  outline: none;
}



.navbar-left {
  display: flex;
  align-items: center; /* Esto es para centrar  verticalmente la imagen y el texto */
  gap: 10px; /* Espacio entre la imagen y el texto */
}

.logo-img {
  width: 50px; /* Cambia el tamaño según necesites */
  height: auto;
}

/* Estilo general de la barra */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background-color: var(--primary-blue);
  color: white;
}

/* Nombre ELAM FARMACIA en la izquierda */
.navbar-left .logo {
  font-size: 24px;
  font-weight: bold;
  color: white;
  margin: 0;
}

/* Enlaces a la derecha */
.navbar-right ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.navbar-right a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar-right a:hover {
  color: var(--light-pink);
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-white);
  background-color: var(--primary-pink); /* Fondo general rosado */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === HEADER === */
header {
  background-color: var(--primary-blue); /* Header azul sólido */
  color: var(--text-light);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  margin-left: -390px;
}

.logo img {
  width: 100px;
  height: 100px;
  margin-right: 20px;
  border-radius: 50%;
}

.logo .elam {
  padding-bottom: 10px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-light); /* Texto blanco sobre header azul */
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary-pink);
}

.hero {
  background: var(--primary-pink);
  padding: 6rem 0;
  text-align: center;
}

.hero h1 {
  color: var(--primary-blue);
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-white);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-blue), var(--white));
  color: var(--text-dark);
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* === SERVICIOS === */
.services {
  padding: 6rem 0;
  background: var(--white);
}

.services h2 {
  text-align: center;
  color: var(--primary-blue);
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  border-color: var(--primary-pink);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-pink), var(--white));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
}

.service-card h3 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.service-card p {
  color: var(--text-dark);
  line-height: 1.6;
}


.about {
  padding: 6rem 0;
  background: var(--light-blue); 
}

.about h2 {
  color: var(  --white);
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.about p {
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content .image img {
  width: 100%;
  border-radius: 10px;
}
/* === CONTACTOS === */
.contact {
  padding: 6rem 0;
  background: var(--white); /* Fondo blanco para mayor contraste */
}

.contact h2 {
  text-align: center;
  color: var(--primary-blue);
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.contact-content {
  display: flex;
  justify-content: center; /* Centra horizontalmente */
  align-items: center;
}

.contact-info {
  background: var(--primary-blue);
  color: var(--text-white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
  max-width: 500px; /* Limita ancho para aspecto de tarjeta */
}

.contact-info h3 {
  color: var(--primary-pink);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.contact-item span {
  margin-right: 1rem;
  font-size: 1.4rem;
}

.contact-form {
  background: var(--light-pink);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group label {
  font-weight: bold;
  color: var(--primary-blue);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--white);
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-pink);
}

.submit-btn {
  background: linear-gradient(135deg, var(--primary-blue), var(--white));
  color: var(--text-dark);
  padding: 1rem 2rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
}

/* === BOTONES DE CONTACTO === */
.btn-contact {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-blue));
  color: var(--text-white);
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  margin-top: 0.3rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-contact:hover {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-pink));
  transform: translateY(-2px);
}

/* === FOOTER === */
footer {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-pink));
  color: var(--text-light);
  text-align: center;
  padding: 3rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: var(--text-light);
  text-decoration: none;
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--primary-pink);
}

/* ========== RESPONSIVE NAV ========== */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
  }

  .navbar-left {
    margin-bottom: 1rem;
    text-align: center;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 0;
    margin: 0;
  }

  .nav-links li {
    list-style: none;
    width: 100%;
  }

  .nav-links a {
    font-size: 1rem;
    display: block;
    padding: 0.6rem;
    width: 100%;
    text-align: center;
    text-decoration: none;
    color: white; 
   
  }

  .nav-links a:hover {
    background-color: #2728a8;
  }
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  padding: 1rem 2rem;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.navbar-left .logo {
  color: white;
  font-size: 1.5rem;
}


@media (max-width: 1024px), (max-width: 480px) {
  body, html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    margin: 0 auto;
  }
}
@media (max-width: 768px) {
  .contact-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
  }

  .contact-info,
  .contact-form {
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
  }

  .contact-form form {
    width: 100%;
  }
}


/* === ANIMACIONES === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card,
.about-content > *,
.contact-content > * {
  animation: fadeInUp 0.6s ease forwards;
}

/* === COLOR REFERENCE SECTION === */
.color-reference {
  padding: 4rem 2rem;
  background: #f9f9f9;
  text-align: center;
}

.color-reference h2 {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 2rem;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.color-box {
  background: var(--white);
  border: 2px solid #ccc;
  border-radius: 15px;
  padding: 1rem;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.color-box::before {
  content: '';
  display: block;
  width: 100%;
  height: 100px;
  background-color: var(--color);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.color-box span {
  font-weight: bold;
  color: var(--primary-pink);
}

.color-box p {
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-top: 0.5rem;
}
