:root {
    --primary-color: #0a2540;
    --secondary-color: #00d4ff;
    --background-color: #f6f9fc;
    --text-color: #333;
    --light-text-color: #fff;
    --card-background: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--primary-color);
    color: var(--light-text-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-text-color);
    text-decoration: none;
}

.nav ul {
    list-style: none;
    display: flex;
}

.nav ul li {
    margin-left: 20px;
}

.nav a {
    color: var(--light-text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(10, 37, 64, 0.8), rgba(10, 37, 64, 0.8)), url('img/hero-background.png');
    background-size: cover;
    background-position: center;
    color: var(--light-text-color);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    margin-top: 60px; /* Adjust for fixed header */
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
     background-color: #007bff;
    color: var(--primary-color);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background: #00bfff;
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 60px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-background);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.service-card p {
    flex-grow: 1; /* Allows the price to be pushed to the bottom */
}

.service-price {
    margin-top: 20px;
    font-size: 1.1rem;
    font-weight: 700;
   
   
    padding: 10px;
    border-radius: 5px;
}
/* Panels */
.panel2 {
     padding: 60px 0 ;
  max-width: var(--max-width);
  margin: 0 auto 60px;
  
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .28s ease, box-shadow .28s ease;
  will-change: transform;
}

.panel2:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(10,10,10,0.08);
}

/* Alternate panel styling */
.panel2.alt {
  background: #fafafa;
}

/* Benefits list */
.benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.benefits-list li {
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(0,0,0,0.03), rgba(0,0,0,0.015));
  color: var(--accent);
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
/* Small decorative bullet using pseudo-element */
.benefits-list li::before{
    content: "✓";
  display:inline-grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:6px;
  background:#111;
  color:#fff;
  font-size:0.8rem;
  flex: 0 0 auto;
}
/* Process list */
.process-list {
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 12px;
}

.process-list li {
  list-style: none;
  background: transparent;
  padding-left: 56px;
  position: relative;
  line-height: 1.4;
}
/* Number badge */
.process-list li::before{
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(10,10,10,0.06);
}
/* Strong text emphasis */
.process-list strong {
  display:inline-block;
  margin-right:6px;
  font-weight:700;
}
/* Responsive adjustments */
@media (min-width: 720px){
  .benefits-list {
    grid-template-columns: repeat(2, 1fr);
  }
  body{
    padding: 64px 24px;
  }
}

@media (max-width: 419px){
  h2 { font-size: 1.05rem; }
  .panel { padding: 18px; }
  .process-list li { padding-left: 52px; }
}

/* Accessibility focus styles */
a:focus, button:focus, .panel:focus {
  outline: 3px solid rgba(17,17,17,0.12);
  outline-offset: 3px;
}

/* Portfolio */
.portfolio {
    background-color: #eef2f7;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 37, 64, 0.9), transparent);
    color: var(--light-text-color);
    padding: 40px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-info h3 {
    margin: 0;
    font-size: 1.4rem;
}

/* Contact */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
/*Forulario de contacto*/
.containerFormulario {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.form-group {
    margin-bottom: 15px;
}
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't affect the overall width */
}
textarea {
    resize: vertical;
}
button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s;
  
}
button a{
   text-decoration: none;
   color: white;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
button[type="submit"]:hover {
    background-color: #0056b3;
}
.response-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    display: none; /* Initially hidden */
}
.response-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.response-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 20px 0;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}




/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .nav ul {
        display: none; /* Simple hiding for now, can be replaced with a burger menu */
    }

    .services-grid, .portfolio-grid {
        grid-template-columns: 1fr;
    }
}